Enum list_fn::ListState

source ·
pub enum ListState<F: ListFn> {
    Some(ListSome<F>),
    End(F::End),
}
Expand description

A list.

Variants§

§

Some(ListSome<F>)

§

End(F::End)

The end of the list.

Implementations§

source§

impl<F: ListFn> ListState<F>

source

pub fn some(first: F::Item, next: F) -> Self

source

pub fn unwrap(self) -> ListSome<F>

Auto Trait Implementations§

§

impl<F> RefUnwindSafe for ListState<F>where F: RefUnwindSafe, <F as ListFn>::End: RefUnwindSafe, <F as ListFn>::Item: RefUnwindSafe,

§

impl<F> Send for ListState<F>where F: Send, <F as ListFn>::End: Send, <F as ListFn>::Item: Send,

§

impl<F> Sync for ListState<F>where F: Sync, <F as ListFn>::End: Sync, <F as ListFn>::Item: Sync,

§

impl<F> Unpin for ListState<F>where F: Unpin, <F as ListFn>::End: Unpin, <F as ListFn>::Item: Unpin,

§

impl<F> UnwindSafe for ListState<F>where F: UnwindSafe, <F as ListFn>::End: UnwindSafe, <F as ListFn>::Item: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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<T, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.