ArrayW

Struct ArrayW 

Source
pub struct ArrayW<const N: usize>(/* private fields */);

Trait Implementations§

Source§

impl<const N: usize> Applicable for ArrayW<N>

Source§

fn liftA2<A, B, C>(f: impl Fn(A, B) -> C, a: [A; N], b: [B; N]) -> [C; N]

Source§

fn ap<A, B>(f: Self::H<impl Fn(A) -> B>, a: Self::H<A>) -> Self::H<B>

Source§

impl<const N: usize> ApplicableMut for ArrayW<N>

Source§

fn liftA2_mut<A, B, C>(f: impl FnMut(A, B) -> C, a: [A; N], b: [B; N]) -> [C; N]

Source§

fn ap_mut<A, B>(f: Self::H<impl FnMut(A) -> B>, a: Self::H<A>) -> Self::H<B>

Source§

impl<const N: usize> Endofunctor for ArrayW<N>

Source§

fn map<A, B>(f: impl Fn(A) -> B, a: [A; N]) -> [B; N]

Source§

impl<const N: usize> EndofunctorMut for ArrayW<N>

Source§

fn map_mut<A, B>(f: impl FnMut(A) -> B, a: [A; N]) -> [B; N]

Source§

impl EndofunctorOnce for ArrayW<1>

Source§

fn map_once<A, B>(f: impl FnOnce(A) -> B, [a]: [A; 1]) -> [B; 1]

Source§

impl<const N: usize> H1 for ArrayW<N>

Source§

type H<A> = [A; N]

Source§

impl Pointed for ArrayW<1>

Source§

fn point<A>(a: A) -> [A; 1]

Source§

impl<const N: usize> Semimonad for ArrayW<N>

Source§

fn join<A>(a: [[A; N]; N]) -> [A; N]

Source§

impl<const N: usize> Traversable for ArrayW<N>

Source§

fn traverse<A, B, P: Pointed + Applicable>( f: impl Fn(A) -> P::H<B>, a: [A; N], ) -> P::H<[B; N]>

Source§

impl<const N: usize> TraversableMut for ArrayW<N>

Source§

fn traverse_mut<A, B, P: Pointed + Applicable>( f: impl FnMut(A) -> P::H<B>, a: [A; N], ) -> P::H<[B; N]>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for ArrayW<N>

§

impl<const N: usize> RefUnwindSafe for ArrayW<N>

§

impl<const N: usize> Send for ArrayW<N>

§

impl<const N: usize> Sync for ArrayW<N>

§

impl<const N: usize> Unpin for ArrayW<N>

§

impl<const N: usize> UnwindSafe for ArrayW<N>

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<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.