Skip to main content

VecF

Struct VecF 

Source
pub struct VecF;
Expand description

Type constructor for Vec<T>.

Trait Implementations§

Source§

impl Alt for VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl Applicative for VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl ApplicativeSt for VecF

Available on crate features alloc or std only.
Source§

fn pure_st<A>(a: A) -> Vec<A>
where A: 'static,

Source§

impl Apply for VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl Chain for VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl ChainSt for VecF

Available on crate features alloc or std only.
Source§

fn chain_st<A, B>(fa: Vec<A>, f: impl Fn(A) -> Vec<B> + 'static) -> Vec<B>
where A: 'static, B: 'static,

Source§

impl Foldable for VecF

Available on crate features alloc or std only.
Source§

fn fold_right<A, B>(fa: Vec<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 VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl FunctorFilter for VecF

Available on crate features alloc or std only.
Source§

fn filter_map<A, B>(fa: Vec<A>, f: impl Fn(A) -> Option<B>) -> Vec<B>

Source§

fn filter<A>(fa: Self::Of<A>, pred: impl Fn(&A) -> bool) -> Self::Of<A>
where A: Clone,

Source§

impl FunctorSt for VecF

Available on crate features alloc or std only.
Source§

fn fmap_st<A, B>(fa: Vec<A>, f: impl Fn(A) -> B + 'static) -> Vec<B>
where A: 'static, B: 'static,

Source§

impl HKT for VecF

Available on crate features alloc or std only.
Source§

type Of<T> = Vec<T>

Source§

impl Invariant for VecF

Available on crate features alloc or std only.
Source§

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

Source§

impl NaturalTransformation<OptionF, VecF> for OptionToVec

Available on crate features alloc or std only.
Source§

fn transform<A>(fa: Option<A>) -> Vec<A>

Source§

impl NaturalTransformation<VecF, OptionF> for VecHeadToOption

Available on crate features alloc or std only.
Source§

fn transform<A>(fa: Vec<A>) -> Option<A>

Source§

impl Plus for VecF

Available on crate features alloc or std only.
Source§

fn zero<A>() -> Vec<A>

Source§

impl Traversable for VecF

Available on crate features alloc or std only.
Source§

fn traverse<G, A, B, F>(fa: Vec<A>, f: F) -> <G as HKT>::Of<Vec<B>>
where G: Applicative, F: Fn(A) -> <G as HKT>::Of<B>, B: Clone,

Auto Trait Implementations§

§

impl Freeze for VecF

§

impl RefUnwindSafe for VecF

§

impl Send for VecF

§

impl Sync for VecF

§

impl Unpin for VecF

§

impl UnsafeUnpin for VecF

§

impl UnwindSafe for VecF

Blanket Implementations§

Source§

impl<F> Alternative for F
where F: Applicative + Plus,

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.