Skip to main content

NonEmptyVecF

Struct NonEmptyVecF 

Source
pub struct NonEmptyVecF;
Expand description

Type constructor for NonEmptyVec<T>.

Trait Implementations§

Source§

impl Alt for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn alt<A>(fa1: NonEmptyVec<A>, fa2: NonEmptyVec<A>) -> NonEmptyVec<A>

Source§

impl Applicative for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn pure<A>(a: A) -> NonEmptyVec<A>

Source§

impl Apply for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn ap<A, B, F>(ff: NonEmptyVec<F>, fa: NonEmptyVec<A>) -> NonEmptyVec<B>
where A: Clone, F: Fn(A) -> B,

Source§

impl Chain for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn chain<A, B>( fa: NonEmptyVec<A>, f: impl Fn(A) -> NonEmptyVec<B>, ) -> NonEmptyVec<B>

Source§

impl Comonad for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn extract<A>(wa: &NonEmptyVec<A>) -> A
where A: Clone,

Source§

impl Extend for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn extend<A, B>( wa: NonEmptyVec<A>, f: impl Fn(&NonEmptyVec<A>) -> B, ) -> NonEmptyVec<B>
where A: Clone,

Source§

fn duplicate<A>(wa: Self::Of<A>) -> Self::Of<Self::Of<A>>
where A: Clone, Self::Of<A>: Clone,

Source§

impl Foldable for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn fold_right<A, B>(fa: NonEmptyVec<A>, init: B, f: impl Fn(A, B) -> B) -> B

Source§

fn fold_map<A, M>(fa: Self::Of<A>, f: impl Fn(A) -> M) -> M
where M: Monoid,

Source§

impl Functor for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn fmap<A, B>(fa: NonEmptyVec<A>, f: impl Fn(A) -> B) -> NonEmptyVec<B>

Source§

impl HKT for NonEmptyVecF

Available on crate features alloc or std only.
Source§

type Of<T> = NonEmptyVec<T>

Source§

impl Invariant for NonEmptyVecF

Available on crate features alloc or std only.
Source§

fn invmap<A, B>( fa: NonEmptyVec<A>, f: impl Fn(A) -> B, _g: impl Fn(B) -> A, ) -> NonEmptyVec<B>

Auto Trait Implementations§

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<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<F> Monad for F
where F: Applicative + Chain,

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.