Struct cosmwasm_std::Uint64 [−][src]
pub struct Uint64(_);Expand description
A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.
Examples
Use from to create instances of this and u64 to get the value out:
let a = Uint64::from(42u64);
assert_eq!(a.u64(), 42);
let b = Uint64::from(70u32);
assert_eq!(b.u64(), 70);Implementations
Creates a Uint64(value).
This method is less flexible than from but can be called in a const context.
Returns self * numerator / denominator
Trait Implementations
Performs the += operation. Read more
Performs the += operation. Read more
Deserialized from an integer string using base 10
Performs the /= operation. Read more
Performs the /= operation. Read more
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
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Uint64
impl UnwindSafe for Uint64
Blanket Implementations
Mutably borrows from an owned value. Read more