pub fn to_string_compact(&self) -> String {
        match (&self.range, self.outside) {
            (_, true) => "Outside".to_string(),
            (None, _) => "None".to_string(),
            (Some(range), false) => format!(
                "Range({}~{}, {}~{})",
                Self::format_node(&range.start_container().unwrap()),
                &range.start_offset().unwrap(),
                Self::format_node(&range.end_container().unwrap()),
                &range.end_offset().unwrap(),
            ),
        }
    }
/// Used by JS code to show a string representation of the range.
Used by JS code to show a string representation of the range.
Used by JS code to show a string representation of the range .
pub fn to_string_compact(&self) -> String {
        match (&self.range, self.outside) {
            (_, true) => "Outside".to_string(),
            (None, _) => "None".to_string(),
            (Some(range), false) => format!(
                "Range({}~{}, {}~{})",
                Self::format_node(&range.start_container().unwrap()),
                &range.start_offset().unwrap(),
                Self::format_node(&range.end_container().unwrap()),
                &range.end_offset().unwrap(),
            ),
        }
    }
pub fn to_string_compact ( & self ) -> String { match ( & self . range , self . outside ) { ( _ , true ) => " " . to_string ( ) , ( None , _ ) => " " . to_string ( ) , ( Some ( range ) , false ) => format ! ( " " Self format_node ( range start_container ( ) unwrap ( ) ) range start_offset ( ) unwrap ( ) Self format_node ( range end_container ( ) unwrap ( ) ) range end_offset ( ) unwrap ( ) ) , } }
Used by JS code to show a string representation of the range.
Used by JS code to show a string representation of the range .
&self
&self