#[repr(u8)]pub enum UnaryOp {
Show 24 variants
Abs = 0,
Acos = 1,
Acosh = 2,
Asin = 3,
Asinh = 4,
Atan = 5,
Atanh = 6,
Cbrt = 7,
Ceil = 8,
Cos = 9,
Cosh = 10,
Exp = 11,
Floor = 12,
Inv = 13,
Ln = 14,
Neg = 15,
Not = 16,
Recip = 17,
Sin = 18,
Sinh = 19,
Sqrt = 20,
Square = 21,
Tan = 22,
Tanh = 23,
}
Variants§
Abs = 0
Acos = 1
Acosh = 2
Asin = 3
Asinh = 4
Atan = 5
Atanh = 6
Cbrt = 7
Ceil = 8
Cos = 9
Cosh = 10
Exp = 11
Floor = 12
Inv = 13
Ln = 14
Neg = 15
Not = 16
Recip = 17
Sin = 18
Sinh = 19
Sqrt = 20
Square = 21
Tan = 22
Tanh = 23
Implementations§
Source§impl UnaryOp
impl UnaryOp
Sourcepub const fn is_acosh(&self) -> bool
pub const fn is_acosh(&self) -> bool
Returns true if the enum is UnaryOp::Acosh otherwise false
Sourcepub const fn is_asinh(&self) -> bool
pub const fn is_asinh(&self) -> bool
Returns true if the enum is UnaryOp::Asinh otherwise false
Sourcepub const fn is_atanh(&self) -> bool
pub const fn is_atanh(&self) -> bool
Returns true if the enum is UnaryOp::Atanh otherwise false
Sourcepub const fn is_floor(&self) -> bool
pub const fn is_floor(&self) -> bool
Returns true if the enum is UnaryOp::Floor otherwise false
Sourcepub const fn is_recip(&self) -> bool
pub const fn is_recip(&self) -> bool
Returns true if the enum is UnaryOp::Recip otherwise false
Source§impl UnaryOp
impl UnaryOp
pub fn differentiable(&self) -> bool
pub fn abs() -> Self
pub fn acos() -> Self
pub fn acosh() -> Self
pub fn asin() -> Self
pub fn asinh() -> Self
pub fn atan() -> Self
pub fn atanh() -> Self
pub fn cbrt() -> Self
pub fn ceil() -> 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 recip() -> Self
pub fn sin() -> Self
pub fn sinh() -> Self
pub fn sqrt() -> Self
pub fn sqr() -> 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 PartialOrd for UnaryOp
impl PartialOrd for UnaryOp
Source§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