pub struct CompactU64(pub u64);
Tuple Fields§
§0: u64
Trait Implementations§
Source§impl BorshDeserialize for CompactU64
impl BorshDeserialize for CompactU64
fn deserialize_reader<R>(reader: &mut R) -> Result<CompactU64, Error>where
R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for CompactU64
impl BorshSerialize for CompactU64
Source§impl Clone for CompactU64
impl Clone for CompactU64
Source§fn clone(&self) -> CompactU64
fn clone(&self) -> CompactU64
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompactU64
impl Debug for CompactU64
Source§impl Deref for CompactU64
impl Deref for CompactU64
Source§impl DerefMut for CompactU64
impl DerefMut for CompactU64
Source§impl<'de> Deserialize<'de> for CompactU64
impl<'de> Deserialize<'de> for CompactU64
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompactU64, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompactU64, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<u16> for CompactU64
impl From<u16> for CompactU64
Source§fn from(value: u16) -> CompactU64
fn from(value: u16) -> CompactU64
Converts to this type from the input type.
Source§impl From<u32> for CompactU64
impl From<u32> for CompactU64
Source§fn from(value: u32) -> CompactU64
fn from(value: u32) -> CompactU64
Converts to this type from the input type.
Source§impl From<u64> for CompactU64
impl From<u64> for CompactU64
Source§fn from(value: u64) -> CompactU64
fn from(value: u64) -> CompactU64
Converts to this type from the input type.
Source§impl From<u8> for CompactU64
impl From<u8> for CompactU64
Source§fn from(value: u8) -> CompactU64
fn from(value: u8) -> CompactU64
Converts to this type from the input type.
Source§impl PartialEq for CompactU64
impl PartialEq for CompactU64
Source§impl Serialize for CompactU64
impl Serialize for CompactU64
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 Eq for CompactU64
impl StructuralPartialEq for CompactU64
Auto Trait Implementations§
impl Freeze for CompactU64
impl RefUnwindSafe for CompactU64
impl Send for CompactU64
impl Sync for CompactU64
impl Unpin for CompactU64
impl UnwindSafe for CompactU64
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more