Trait glm::GenNum
[−]
[src]
pub trait GenNum<E: BaseNum>: Copy + Sized + Clone + One + Zero + Div<Self, Output = Self> + Rem<Self, Output = Self> + Add<E, Output = Self> + Mul<E, Output = Self> + Rand { fn from_s(x: E) -> Self; fn map<F>(self, f: F) -> Self
where
F: Fn(E) -> E; fn zip<F>(self, y: Self, f: F) -> Self
where
F: Fn(E, E) -> E; fn split<F>(self, f: F) -> (Self, Self)
where
F: Fn(E) -> (E, E); fn map2<F>(self, y: Self, f: F) -> (Self, Self)
where
F: Fn(E, E) -> (E, E); }
Generic numeric type.
Required Methods
fn from_s(x: E) -> Self
Constructs from a scalar number.
fn map<F>(self, f: F) -> Self where
F: Fn(E) -> E,
F: Fn(E) -> E,
fn zip<F>(self, y: Self, f: F) -> Self where
F: Fn(E, E) -> E,
F: Fn(E, E) -> E,
fn split<F>(self, f: F) -> (Self, Self) where
F: Fn(E) -> (E, E),
F: Fn(E) -> (E, E),
fn map2<F>(self, y: Self, f: F) -> (Self, Self) where
F: Fn(E, E) -> (E, E),
F: Fn(E, E) -> (E, E),
Implementations on Foreign Types
impl GenNum<i32> for i32
[src]
impl GenNum<i32> for i32
impl GenNum<u32> for u32
[src]
impl GenNum<u32> for u32
impl GenNum<f32> for f32
[src]
impl GenNum<f32> for f32
impl GenNum<f64> for f64
[src]
impl GenNum<f64> for f64