#[repr(u8)]pub enum MathOp {
Show 22 variants
Sin = 0,
Cos = 1,
Tan = 2,
Asin = 3,
Acos = 4,
Atan = 5,
Atan2 = 6,
Sqrt = 7,
Hypot = 8,
Abs = 9,
Sign = 10,
Min = 11,
Max = 12,
Clamp = 13,
Floor = 14,
Ceil = 15,
Round = 16,
RoundTiesToEven = 17,
Trunc = 18,
DegreesToRadians = 19,
RadiansToDegrees = 20,
Lerp = 21,
}Variants§
Sin = 0
Cos = 1
Tan = 2
Asin = 3
Acos = 4
Atan = 5
Atan2 = 6
Sqrt = 7
Hypot = 8
Abs = 9
Sign = 10
Min = 11
Max = 12
Clamp = 13
Floor = 14
Ceil = 15
Round = 16
RoundTiesToEven = 17
Trunc = 18
DegreesToRadians = 19
RadiansToDegrees = 20
Lerp = 21
Implementations§
Source§impl MathOp
impl MathOp
pub const ALL: [Self; 22]
pub fn from_code(code: u32) -> Option<Self>
pub fn name(self) -> &'static str
pub fn params(self) -> &'static [&'static str]
pub fn arity(self) -> usize
Sourcepub fn descriptor(self, owner_module: &str) -> String
pub fn descriptor(self, owner_module: &str) -> String
Canonical descriptor includes all signature fields and a semantic revision.
Trait Implementations§
impl Copy for MathOp
impl Eq for MathOp
impl StructuralPartialEq for MathOp
Auto Trait Implementations§
impl Freeze for MathOp
impl RefUnwindSafe for MathOp
impl Send for MathOp
impl Sync for MathOp
impl Unpin for MathOp
impl UnsafeUnpin for MathOp
impl UnwindSafe for MathOp
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