Enum tinychain::scalar::IntType [−]
pub enum IntType {
I8,
I16,
I32,
I64,
Int,
}Expand description
The type of an Int.
Variants
Trait Implementations
impl<'de> Deserialize<'de> for IntType
impl<'de> Deserialize<'de> for IntType
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IntType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IntType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<IntType> for NumberType
impl From<IntType> for NumberType
pub fn from(it: IntType) -> NumberType
pub fn from(it: IntType) -> NumberType
Performs the conversion.
impl NumberClass for IntType
impl NumberClass for IntType
impl PartialOrd<IntType> for IntType
impl PartialOrd<IntType> for IntType
pub fn partial_cmp(&self, other: &IntType) -> Option<Ordering>
pub fn partial_cmp(&self, other: &IntType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 StructuralEq for IntType
impl StructuralPartialEq for IntType
Auto Trait Implementations
impl RefUnwindSafe for IntType
impl UnwindSafe for IntType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Returns true if self can be cast into the target type T.
type Output = T
type Output = T
Should always be Self
Test if value can be cast into Self.
Returns Some(Self) if the source value can be cast into Self, otherwise None.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
Test if self can be cast into T.
Returns Some(T) if self can be cast into T, otherwise None.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T) if self can be cast into T, otherwise calls on_err.