pub enum Unary {
Show 15 variants
Negate,
Magnitude,
Sqrt,
Floor,
Ln,
Sin,
Cos,
Sinh,
Cosh,
Sqrt1mx2,
Sqrt1px2,
Digamma,
Exp,
Lgamma,
Not,
}Expand description
An elementwise operation of one value that a recipe uses, named by id: an Ops implementor computes each in one match (Ops::unary).
Variants§
Negate
Magnitude
Sqrt
Floor
Ln
Sin
Cos
Sinh
Cosh
Sqrt1mx2
√(1 - x²).
Sqrt1px2
√(1 + x²).
Digamma
ψ(x).
Exp
e^x.
Lgamma
ln |Γ(x)|.
Not
1 - x: the negation of a truth value held as 0 or 1, as a Boolean is.
Trait Implementations§
impl Copy for Unary
impl Eq for Unary
impl StructuralPartialEq for Unary
Auto Trait Implementations§
impl Forget for Unary
impl Freeze for Unary
impl RefUnwindSafe for Unary
impl Send for Unary
impl Sync for Unary
impl Unpin for Unary
impl UnsafeUnpin for Unary
impl UnwindSafe for Unary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more