Struct flow_sdk::prelude::cadence_json::Fix64 [−][src]
pub struct Fix64(_);
Implementations
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Fix64, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Fix64, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
assert_eq!(Fix64::from_raw(1).to_string(), "0.00000001");
assert_eq!(Fix64::from_raw(99999999).to_string(), "0.99999999");
assert_eq!(Fix64::from_raw(999999999).to_string(), "9.99999999");
assert_eq!(Fix64::from_raw(i64::MAX).to_string(), "92233720368.54775807");
assert_eq!(Fix64::from_raw(i64::MIN).to_string(), "-92233720368.54775808");
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
Auto Trait Implementations
impl RefUnwindSafe for Fix64
impl UnwindSafe for Fix64
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more