Trait beagle::consts::Dim
[−]
[src]
pub trait Dim<T>: Array<T> + HasSmaller where
Self::Smaller: Array<T>, { fn split(a0: Self::Type) -> (T, <Self::Smaller as Array<T>>::Type); fn split_ref(a0: &Self::Type) -> (&T, &<Self::Smaller as Array<T>>::Type); fn split_ref_end(
a0: &Self::Type
) -> (&<Self::Smaller as Array<T>>::Type, &T); fn split_mut(
a0: &mut Self::Type
) -> (&mut T, &mut <Self::Smaller as Array<T>>::Type); fn split_mut_end(
a0: &mut Self::Type
) -> (&mut <Self::Smaller as Array<T>>::Type, &mut T); fn chain(v: T, end: <Self::Smaller as Array<T>>::Type) -> Self::Type; }
Types that represent a dimension.
Required Methods
fn split(a0: Self::Type) -> (T, <Self::Smaller as Array<T>>::Type)
Split the array into an element and a smaller array.
fn split_ref(a0: &Self::Type) -> (&T, &<Self::Smaller as Array<T>>::Type)
Split the array into a reference to an element and a reference to a smaller array.
fn split_ref_end(a0: &Self::Type) -> (&<Self::Smaller as Array<T>>::Type, &T)
Split the array into a reference to a smaller array and a reference to an element.
fn split_mut(
a0: &mut Self::Type
) -> (&mut T, &mut <Self::Smaller as Array<T>>::Type)
a0: &mut Self::Type
) -> (&mut T, &mut <Self::Smaller as Array<T>>::Type)
Split the array into a mutable reference to an element and a mutable reference to a smaller array.
fn split_mut_end(
a0: &mut Self::Type
) -> (&mut <Self::Smaller as Array<T>>::Type, &mut T)
a0: &mut Self::Type
) -> (&mut <Self::Smaller as Array<T>>::Type, &mut T)
Split the array into a mutable reference to a smaller array and a mutable reference to an element.
fn chain(v: T, end: <Self::Smaller as Array<T>>::Type) -> Self::Type
The opposite of split.