Enum tinychain::scalar::ComplexType [−]
pub enum ComplexType {
C32,
C64,
Complex,
}Expand description
The type of a Complex number.
Variants
Trait Implementations
impl Clone for ComplexType
impl Clone for ComplexType
pub fn clone(&self) -> ComplexType
pub fn clone(&self) -> ComplexType
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for ComplexType
impl Debug for ComplexType
impl Default for ComplexType
impl Default for ComplexType
pub fn default() -> ComplexType
pub fn default() -> ComplexType
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for ComplexType
impl<'de> Deserialize<'de> for ComplexType
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ComplexType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ComplexType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Display for ComplexType
impl Display for ComplexType
impl From<ComplexType> for NumberType
impl From<ComplexType> for NumberType
pub fn from(ct: ComplexType) -> NumberType
pub fn from(ct: ComplexType) -> NumberType
Performs the conversion.
impl Hash for ComplexType
impl Hash for ComplexType
impl NumberClass for ComplexType
impl NumberClass for ComplexType
impl Ord for ComplexType
impl Ord for ComplexType
pub fn cmp(&self, other: &ComplexType) -> Ordering
pub fn cmp(&self, other: &ComplexType) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
impl PartialEq<ComplexType> for ComplexType
impl PartialEq<ComplexType> for ComplexType
impl PartialOrd<ComplexType> for ComplexType
impl PartialOrd<ComplexType> for ComplexType
pub fn partial_cmp(&self, other: &ComplexType) -> Option<Ordering>
pub fn partial_cmp(&self, other: &ComplexType) -> 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
impl Serialize for ComplexType
impl Serialize for ComplexType
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 Copy for ComplexType
impl Eq for ComplexType
impl StructuralEq for ComplexType
impl StructuralPartialEq for ComplexType
Auto Trait Implementations
impl RefUnwindSafe for ComplexType
impl Send for ComplexType
impl Sync for ComplexType
impl Unpin for ComplexType
impl UnwindSafe for ComplexType
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.