OptionList

Enum OptionList 

Source
pub enum OptionList<I, E> {
    Some {
        first: I,
        end: E,
    },
    End(E),
}

Variants§

§

Some

Fields

§first: I
§end: E
§

End(E)

Trait Implementations§

Source§

impl<I, E> ListFn for OptionList<I, E>

Source§

type Item = I

A list item type.
Source§

type End = E

A value which is returned when the list has no more items.
Source§

fn next(self) -> ListState<Self>

The main function which returns a list.

Auto Trait Implementations§

§

impl<I, E> Freeze for OptionList<I, E>
where I: Freeze, E: Freeze,

§

impl<I, E> RefUnwindSafe for OptionList<I, E>

§

impl<I, E> Send for OptionList<I, E>
where I: Send, E: Send,

§

impl<I, E> Sync for OptionList<I, E>
where I: Sync, E: Sync,

§

impl<I, E> Unpin for OptionList<I, E>
where I: Unpin, E: Unpin,

§

impl<I, E> UnwindSafe for OptionList<I, E>
where I: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<L> Filter for L
where L: ListFn,

Source§

fn filter<F: FilterFn<Input = Self::Item>>( self, f: F, ) -> FlatMapList<Self, FilterWrap<F>>

Source§

impl<S> FlatMap for S
where S: ListFn,

Source§

fn flat_map<F: FlatMapFn<Input = Self::Item>>( self, flat_map: F, ) -> FlatMapList<Self, F>

Source§

impl<S> FlatScan for S
where S: ListFn,

Source§

fn flat_scan<F>(self, flat_scan: F) -> FlatScanState<Self, F>
where F: FlatScanFn<InputItem = Self::Item>, Self::End: ResultFn<Result = F::InputResult>,

Source§

impl<S> Fold for S
where S: ListFn,

Source§

fn fold(self) -> Self::End

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<L> IterWrap for L
where L: ListFn,

Source§

impl<L> Map for L
where L: ListFn,

Source§

fn map<M: MapFn<Input = Self::Item>>( self, m: M, ) -> FlatMapList<Self, MapWrap<M>>

Source§

impl<L> Take for L
where L: ListFn,

Source§

fn take(self, count: usize) -> TakeList<Self>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.