[−][src]Struct feast::pass::SlicePass
Trait Implementations
impl<'p, T, E> Pass<'p> for SlicePass<'p, T, E> where
T: Token,
E: Error<'p, Context = SlicePassContext<'p, T>>,
[src]
T: Token,
E: Error<'p, Context = SlicePassContext<'p, T>>,
type Error = E
type Context = SlicePassContext<'p, T>
fn context(&self) -> &Self::Context
[src]
fn into_context(self) -> Self::Context
[src]
fn commit(self, rest: PassInput<'p, Self>) -> Self
[src]
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]
input_result: Result<O, PassInputError<'i, Self>>,
pass: Self
) -> PassResult<'i, Self, O>
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]
self,
requirement: CompletionRequirement
) -> Self::Error
Create a pass error based on an incomplete input error.
fn input_error_unexpected(
self,
unexpected: UnexpectedToken<'i, PassToken<'i, Self>>
) -> Self::Error
[src]
self,
unexpected: UnexpectedToken<'i, PassToken<'i, Self>>
) -> Self::Error
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]
self
) -> PassResult<'i, Self, (PassToken<'i, Self>, PassInput<'i, Self>)>
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]
self,
pred: F
) -> PassResult<'i, Self, (PassSection<'i, Self>, PassInput<'i, Self>)> where
F: FnMut(&PassToken<'i, Self>) -> bool,
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]
self,
mid: usize
) -> PassResult<'i, Self, (PassSection<'i, Self>, PassInput<'i, Self>)>
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]
T: Token,
E: Error<'p>,
fn eq(&self, other: &SlicePass<'p, T, E>) -> bool
[src]
fn ne(&self, other: &SlicePass<'p, T, E>) -> bool
[src]
impl<'p, T: Clone, E: Clone> Clone for SlicePass<'p, T, E> where
T: Token,
E: Error<'p>,
[src]
T: Token,
E: Error<'p>,
fn clone(&self) -> SlicePass<'p, T, E>
[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]
T: Token,
E: Error<'p, Context = SlicePassContext<'p, T>>,
impl<'p, T: Debug, E: Debug> Debug for SlicePass<'p, T, E> where
T: Token,
E: Error<'p>,
[src]
T: Token,
E: Error<'p>,
Auto Trait Implementations
impl<'p, T, E> Send for SlicePass<'p, T, E> where
E: Send,
T: Sync,
E: Send,
T: Sync,
impl<'p, T, E> Sync for SlicePass<'p, T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,