Enum pax_runtime_api::numeric::Numeric
source · pub enum Numeric {
Integer(isize),
Float(f64),
}
Expand description
Numeric is a module that wraps numeric literals in Pax It encapsulates the built-in Rust numeric scalar types and defines behavior across them
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Numeric
impl<'de> Deserialize<'de> for Numeric
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 From<IntoableLiteral> for Numeric
impl From<IntoableLiteral> for Numeric
source§fn from(value: IntoableLiteral) -> Self
fn from(value: IntoableLiteral) -> Self
Converts to this type from the input type.
source§impl From<Numeric> for ColorChannel
impl From<Numeric> for ColorChannel
source§impl Interpolatable for Numeric
impl Interpolatable for Numeric
fn interpolate(&self, other: &Self, t: f64) -> Self
source§impl PartialEq<isize> for Numeric
impl PartialEq<isize> for Numeric
source§impl PartialEq for Numeric
impl PartialEq for Numeric
source§impl PartialOrd for Numeric
impl PartialOrd for Numeric
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 moreimpl Copy for Numeric
Auto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.