Struct beagle::consts::One
[−]
[src]
pub struct One;
Trait Implementations
impl IsLargerThan<Zero> for One
[src]
impl NotSame<Zero> for One
[src]
impl DecrementIfLargerThan<Zero> for One
[src]
type Result = <One as HasSmaller>::Smaller
impl HasSmaller for One
[src]
impl IsSmallerThan<Two> for One
[src]
fn index_array<T>(a0: &<Two as Array<T>>::Type) -> &T
Index an array of size C
safely.
impl NotSame<Two> for One
[src]
impl DecrementIfLargerThan<Two> for One
[src]
impl IsSmallerThan<Three> for One
[src]
fn index_array<T>(a0: &<Three as Array<T>>::Type) -> &T
Index an array of size C
safely.
impl NotSame<Three> for One
[src]
impl DecrementIfLargerThan<Three> for One
[src]
impl IsSmallerThan<Four> for One
[src]
fn index_array<T>(a0: &<Four as Array<T>>::Type) -> &T
Index an array of size C
safely.
impl NotSame<Four> for One
[src]
impl DecrementIfLargerThan<Four> for One
[src]
impl HasLarger for One
[src]
impl Clone for One
[src]
fn clone(&self) -> One
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for One
[src]
impl Debug for One
[src]
impl Default for One
[src]
impl PartialEq for One
[src]
fn eq(&self, __arg_0: &One) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl PartialOrd for One
[src]
fn partial_cmp(&self, __arg_0: &One) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for One
[src]
fn cmp(&self, __arg_0: &One) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Eq for One
[src]
impl Hash for One
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Constant for One
[src]
impl<T> Array<T> for One
[src]
type RawType = [T; 1]
A raw array of the size equal to the dimension this type represents.
type Type = CustomArrayOne<T>
A custom array of the size equal to the dimension this type represents.
fn from_value(v: T) -> Self::Type where
T: Clone,
T: Clone,
Construct an array from a single value v
, replicating it to all positions in the array.
fn apply<F>(a0: Self::Type, f: F) where
F: FnMut(T),
F: FnMut(T),
Apply f
to all the elements of the array
fn apply2<U, F>(a0: Self::Type, a1: Self::Type, f: F) where
F: FnMut(T, U),
F: FnMut(T, U),
Apply f
to all elements of two arrays.
fn fold<O, F>(a0: Self::Type, init: O, f: F) -> O where
F: FnMut(O, T) -> O,
F: FnMut(O, T) -> O,
Fold all the elements of the array with function f
fn fold2<U, O, F>(a0: Self::Type, a1: Self::Type, init: O, f: F) -> O where
F: FnMut(O, T, U) -> O,
F: FnMut(O, T, U) -> O,
Fold all the elements of two arrays with function f
fn map<O, F>(a0: Self::Type, f: F) -> Self::Type where
F: FnMut(T) -> O,
F: FnMut(T) -> O,
Map all the elements of the array with function f
fn map_into_2<O1, O2, F>(a0: Self::Type, f: F) -> (Self::Type, Self::Type) where
F: FnMut(T) -> (O1, O2),
F: FnMut(T) -> (O1, O2),
Map all the elements into two arrays with function f
fn map2<U, O, F>(a0: Self::Type, a1: Self::Type, f: F) -> Self::Type where
F: FnMut(T, U) -> O,
F: FnMut(T, U) -> O,
Map all the elements of two arrays with function f
fn map3<T2, T3, O, F>(
a0: Self::Type,
a1: Self::Type,
a2: Self::Type,
f: F
) -> Self::Type where
F: FnMut(T, T2, T3) -> O,
a0: Self::Type,
a1: Self::Type,
a2: Self::Type,
f: F
) -> Self::Type where
F: FnMut(T, T2, T3) -> O,
Map all the elements of three arrays with function f
fn transpose<U, S>(a0: Self::Type) -> <U as Array<Self::Type>>::Type where
U: Dim<S, Type = T> + Dim<Self::Type>,
U::Smaller: Array<S> + Array<Self::Type>,
U: Dim<S, Type = T> + Dim<Self::Type>,
U::Smaller: Array<S> + Array<Self::Type>,
Transpose the elements of a 2d array
fn transpose_helper<U>(a0: <U as Array<Self::Type>>::Type) -> Self::Type where
U: Array<Self::Type> + Array<T>,
U: Array<Self::Type> + Array<T>,
A helper to transpose the elements of a 2d array (recursion)
impl<T> ArrayRef<T> for One
[src]
impl<T> ArrayMut<T> for One
[src]
impl<T> Dim<T> for One
[src]
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(a0v0: T, a0: <Self::Smaller as Array<T>>::Type) -> Self::Type
The opposite of split.
impl ExtractItem<Zero> for One
[src]
impl<T> DimRef<T> for One
[src]
impl<T> DimMut<T> for One
[src]
impl<T, D: Dim<T>> TwoDim<T, D> for One where
D::Smaller: Array<T>,
[src]
D::Smaller: Array<T>,
impl<T, D: DimRef<T>> TwoDimRef<T, D> for One where
D::Smaller: Array<T> + Array<&'a T>,
[src]
D::Smaller: Array<T> + Array<&'a T>,
impl<T, D: DimMut<T>> TwoDimMut<T, D> for One where
D::Smaller: Array<T> + Array<&'a T> + Array<&'a mut T>,
[src]
D::Smaller: Array<T> + Array<&'a T> + Array<&'a mut T>,