Struct layered_nlp::LLSelection[][src]

pub struct LLSelection { /* fields omitted */ }

Selections will never be empty

Implementations

impl LLSelection[src]

pub fn from_line(ll_line: Rc<LLLine>) -> Option<Self>[src]

Returns None if the line is empty

pub fn split_by<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Vec<LLSelection>[src]

pub fn find_by<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Vec<(LLSelection, M::Out)>
[src]

pub fn find_first_by<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Option<(LLSelection, M::Out)>
[src]

pub fn find_by_forwards_and_backwards<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Vec<(LLSelection, M::Out)>
[src]

pub fn match_forwards<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Vec<(LLSelection, M::Out)>
[src]

pub fn match_first_forwards<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Option<(LLSelection, M::Out)>
[src]

pub fn match_forwards_longest<'a, M: XMatch<'a>>(
    &'a self,
    _matcher: &M
) -> Option<(LLSelection, M::Out)>
[src]

pub fn match_forwards_shortest<'a, M: XMatch<'a>>(
    &'a self,
    _matcher: &M
) -> Option<(LLSelection, M::Out)>
[src]

pub fn match_backwards<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Vec<(LLSelection, M::Out)>
[src]

pub fn match_first_backwards<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Option<(LLSelection, M::Out)>
[src]

pub fn after(&self) -> Option<LLSelection>[src]

pub fn split_with(
    &self,
    other_selection: &LLSelection
) -> [Option<LLSelection>; 2]
[src]

pub fn trim_start<'a, M: XMatch<'a>>(
    &'a self,
    matcher: &M
) -> Option<LLSelection>
[src]

pub fn trim_end<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Option<LLSelection>[src]

pub fn trim<'a, M: XMatch<'a>>(&'a self, matcher: &M) -> Option<LLSelection>[src]

pub fn finish_with_attr<Attr>(&self, value: Attr) -> LLCursorAssignment<Attr>[src]

Trait Implementations

impl Clone for LLSelection[src]

impl Debug for LLSelection[src]

impl PartialEq<LLSelection> for LLSelection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.