Enum pax_runtime::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<Numeric, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Numeric, <__D as Deserializer<'de>>::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) -> Numeric
fn from(value: IntoableLiteral) -> Numeric
Converts to this type from the input type.
source§impl From<Numeric> for ColorChannel
impl From<Numeric> for ColorChannel
source§fn from(value: Numeric) -> ColorChannel
fn from(value: Numeric) -> ColorChannel
Converts to this type from the input type.
source§impl Interpolatable for Numeric
impl Interpolatable for Numeric
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 moresource§impl Serialize for Numeric
impl Serialize for Numeric
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl 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.