pub struct LLSelection { /* private fields */ }Expand description
Selections will never be empty
Implementations§
Source§impl LLSelection
impl LLSelection
pub fn split_by<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Vec<LLSelection>
pub fn find_by<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Vec<(LLSelection, M::Out)>
pub fn find_first_by<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Option<(LLSelection, M::Out)>
pub fn find_by_forwards_and_backwards<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Vec<(LLSelection, M::Out)>
pub fn match_forwards<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Vec<(LLSelection, M::Out)>
pub fn match_first_forwards<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Option<(LLSelection, M::Out)>
pub fn match_forwards_longest<'a, M: XMatch<'a>>( &'a self, _matcher: &M, ) -> Option<(LLSelection, M::Out)>
pub fn match_forwards_shortest<'a, M: XMatch<'a>>( &'a self, _matcher: &M, ) -> Option<(LLSelection, M::Out)>
pub fn match_backwards<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Vec<(LLSelection, M::Out)>
pub fn match_first_backwards<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Option<(LLSelection, M::Out)>
pub fn after(&self) -> Option<LLSelection>
pub fn split_with( &self, other_selection: &LLSelection, ) -> [Option<LLSelection>; 2]
pub fn trim_start<'a, M: XMatch<'a>>( &'a self, matcher: &M, ) -> Option<LLSelection>
pub fn trim_end<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Option<LLSelection>
pub fn trim<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Option<LLSelection>
pub fn finish_with_attr<Attr>(&self, value: Attr) -> LLCursorAssignment<Attr>
Trait Implementations§
Source§impl Clone for LLSelection
impl Clone for LLSelection
Source§fn clone(&self) -> LLSelection
fn clone(&self) -> LLSelection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LLSelection
impl Debug for LLSelection
Source§impl PartialEq for LLSelection
impl PartialEq for LLSelection
Auto Trait Implementations§
impl Freeze for LLSelection
impl !RefUnwindSafe for LLSelection
impl !Send for LLSelection
impl !Sync for LLSelection
impl Unpin for LLSelection
impl !UnwindSafe for LLSelection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more