#[repr(u8)]pub enum UnaryOp {
Show 15 variants
Abs = 0,
Cos = 1,
Cosh = 2,
Exp = 3,
Floor = 4,
Inv = 5,
Ln = 6,
Neg = 7,
Not = 8,
Sin = 9,
Sinh = 10,
Sqrt = 11,
Square = 12,
Tan = 13,
Tanh = 14,
}Variants§
Abs = 0
Cos = 1
Cosh = 2
Exp = 3
Floor = 4
Inv = 5
Ln = 6
Neg = 7
Not = 8
Sin = 9
Sinh = 10
Sqrt = 11
Square = 12
Tan = 13
Tanh = 14
Implementations§
source§impl UnaryOp
impl UnaryOp
source§impl UnaryOp
impl UnaryOp
pub fn differentiable(&self) -> bool
pub fn abs() -> Self
pub fn cos() -> Self
pub fn cosh() -> Self
pub fn exp() -> Self
pub fn floor() -> Self
pub fn inv() -> Self
pub fn ln() -> Self
pub fn neg() -> Self
pub fn not() -> Self
pub fn sin() -> Self
pub fn sinh() -> Self
pub fn sqrt() -> Self
pub fn square() -> Self
pub fn tan() -> Self
pub fn tanh() -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for UnaryOp
impl<'de> Deserialize<'de> for UnaryOp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoEnumIterator for UnaryOp
impl IntoEnumIterator for UnaryOp
type Iterator = UnaryOpIter
fn iter() -> UnaryOpIter ⓘ
source§impl Ord for UnaryOp
impl Ord for UnaryOp
source§impl PartialEq for UnaryOp
impl PartialEq for UnaryOp
source§impl PartialOrd for UnaryOp
impl PartialOrd for UnaryOp
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl VariantNames for UnaryOp
impl VariantNames for UnaryOp
impl Copy for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnwindSafe for UnaryOp
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