pub struct Chain<A, B, T> { /* private fields */ }
Expand description
Transformation obtained by combining two other ones.
Transformations are applied in the following order: A(B(x))
.
Implementations
Trait Implementations
sourceimpl<A, B, T> AbsDiffEq<Chain<A, B, T>> for Chain<A, B, T> where
A: AbsDiffEq<Epsilon = T>,
B: AbsDiffEq<Epsilon = T>,
T: AbsDiffEq<Epsilon = T> + Copy,
impl<A, B, T> AbsDiffEq<Chain<A, B, T>> for Chain<A, B, T> where
A: AbsDiffEq<Epsilon = T>,
B: AbsDiffEq<Epsilon = T>,
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<A, B, T> Directional<T> for Chain<A, B, T> where
A: Directional<T>,
B: Directional<T>,
Self: Transform<T>,
T: Normalize + Copy,
impl<A, B, T> Directional<T> for Chain<A, B, T> where
A: Directional<T>,
B: Directional<T>,
Self: Transform<T>,
T: Normalize + Copy,
sourcefn apply_dir(&self, pos: T, dir: T) -> T
fn apply_dir(&self, pos: T, dir: T) -> T
Returns the result of the direction transformation at the specified position.
sourcefn apply_normal(&self, pos: T, normal: T) -> T
fn apply_normal(&self, pos: T, normal: T) -> T
Returns the result of the normal transformation at the specified position. Read more
sourceimpl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Normal where
Normal: Distribution<Linear<T, N>> + Distribution<Shift<T, N>>,
impl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Normal where
Normal: Distribution<Linear<T, N>> + Distribution<Shift<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Invertible where
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
impl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Invertible where
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<A, B, T> Transform<T> for Chain<A, B, T> where
A: Transform<T> + Reorder<B, T>,
B: Transform<T> + Reorder<A, T>,
T: Copy,
impl<A, B, T> Transform<T> for Chain<A, B, T> where
A: Transform<T> + Reorder<B, T>,
B: Transform<T> + Reorder<A, T>,
T: Copy,
impl<A: Copy, B: Copy, T: Copy> Copy for Chain<A, B, T>
impl<A, B, T> StructuralPartialEq for Chain<A, B, T>
Auto Trait Implementations
impl<A, B, T> RefUnwindSafe for Chain<A, B, T> where
A: RefUnwindSafe,
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, B, T> Send for Chain<A, B, T> where
A: Send,
B: Send,
T: Send,
impl<A, B, T> Sync for Chain<A, B, T> where
A: Sync,
B: Sync,
T: Sync,
impl<A, B, T> Unpin for Chain<A, B, T> where
A: Unpin,
B: Unpin,
T: Unpin,
impl<A, B, T> UnwindSafe for Chain<A, B, T> where
A: UnwindSafe,
B: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more