/// Return the last range of the selection that is within the wrapper
/// element.
Return the last range of the selection that is within the wrapper
element.
Return the last range of the selection that is within the wrapper element .
pub fn fetch_range(&self) -> RangeResult {
        trace!("[compose_area] fetch_range");
        let selection = match self.fetch_selection() {
            Some(sel) => sel,
            None => {
                error!("[compose_area] Could not find selection");
                return RangeResult::none();
            }
        };
        let mut candidate: Option<Range> = None;
        for i in 0..selection.range_count() {
            let range = selection
                .get_range_at(i)
                .expect("Could not get range from selection");
            candidate = Some(range.clone());
            let container = range
                .common_ancestor_container()
                .expect("Could not get common ancestor container for range");
            if self.wrapper.contains(Some(&container)) {
                return RangeResult::contained(range);
            }
        }
        match candidate {
            Some(range) => RangeResult::outside(range),
            None => RangeResult::none(),
        }
    }
pub fn fetch_range ( & self ) -> RangeResult { trace ! ( " " ) ; let selection = match self . fetch_selection ( ) { Some ( sel ) => sel , None => { error ! ( " " ) ; return RangeResult :: none ( ) ; } } ; let mut candidate : Option < Range > = None ; for i in 0 .. selection . range_count ( ) { let range = selection . get_range_at ( i ) . expect ( " " ) ; candidate = Some ( range . clone ( ) ) ; let container = range . common_ancestor_container ( ) . expect ( " " ) ; if self . wrapper . contains ( Some ( & container ) ) { return RangeResult :: contained ( range ) ; } } match candidate { Some ( range ) => RangeResult :: outside ( range ) , None => RangeResult :: none ( ) , } }
Return the last range of the selection that is within the wrapper
element.
Return the last range of the selection that is within the wrapper element .
&self