[][src]Struct feast::pass::SlicePass

pub struct SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p>, 
{ /* fields omitted */ }

Trait Implementations

impl<'p, T, E> Pass<'p> for SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p, Context = SlicePassContext<'p, T>>, 
[src]

type Error = E

type Context = SlicePassContext<'p, T>

fn input<'ii>(&'ii self) -> PassInput<'i, Self>[src]

Get the input for this pass.

fn with<O>(
    input_result: Result<O, PassInputError<'i, Self>>,
    pass: Self
) -> PassResult<'i, Self, O>
[src]

With input result, mapping the error for a pass.

fn input_error(self, err: PassInputError<'i, Self>) -> Self::Error[src]

Create a pass error based on an input error.

fn input_error_incomplete(
    self,
    requirement: CompletionRequirement
) -> Self::Error
[src]

Create a pass error based on an incomplete input error.

fn input_error_unexpected(
    self,
    unexpected: UnexpectedToken<'i, PassToken<'i, Self>>
) -> Self::Error
[src]

Create a pass error based on an unexpected input error.

fn input_is_empty(&'i self) -> bool[src]

Returns whether or not the input is empty.

fn split_first(
    self
) -> PassResult<'i, Self, (PassToken<'i, Self>, PassInput<'i, Self>)>
[src]

Splits the first token from the input.

fn split_pair<E, F>(
    self,
    pred: F
) -> PassResult<'i, Self, (PassSection<'i, Self>, PassInput<'i, Self>)> where
    F: FnMut(&PassToken<'i, Self>) -> bool
[src]

Splits an input in two, based on a predictate. Will fail if cannot split into a pair. Read more

fn split_at<E>(
    self,
    mid: usize
) -> PassResult<'i, Self, (PassSection<'i, Self>, PassInput<'i, Self>)>
[src]

Splits an input in two, from an exact size.

impl<'p, T: PartialEq, E: PartialEq> PartialEq<SlicePass<'p, T, E>> for SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p>, 
[src]

impl<'p, T: Clone, E: Clone> Clone for SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p>, 
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'p, T, E> From<&'p [T]> for SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p, Context = SlicePassContext<'p, T>>, 
[src]

impl<'p, T: Debug, E: Debug> Debug for SlicePass<'p, T, E> where
    T: Token,
    E: Error<'p>, 
[src]

Auto Trait Implementations

impl<'p, T, E> Send for SlicePass<'p, T, E> where
    E: Send,
    T: Sync

impl<'p, T, E> Sync for SlicePass<'p, T, E> where
    E: Sync,
    T: Sync

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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