pub enum ByteDisplay {
Hex,
Decimal,
Bech32 {
prefix: Hrp,
},
Bech32m {
prefix: Hrp,
},
Base58,
}Variants§
Implementations§
Source§impl ByteDisplay
impl ByteDisplay
Trait Implementations§
Source§impl BorshDeserialize for ByteDisplay
impl BorshDeserialize for ByteDisplay
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
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 ByteDisplay
impl BorshSerialize for ByteDisplay
Source§impl Clone for ByteDisplay
impl Clone for ByteDisplay
Source§fn clone(&self) -> ByteDisplay
fn clone(&self) -> ByteDisplay
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 ByteDisplay
impl Debug for ByteDisplay
Source§impl Default for ByteDisplay
impl Default for ByteDisplay
Source§fn default() -> ByteDisplay
fn default() -> ByteDisplay
Returns the “default value” for a type. Read more
Source§impl EnumExt for ByteDisplay
impl EnumExt for ByteDisplay
Source§impl PartialEq for ByteDisplay
impl PartialEq for ByteDisplay
impl Copy for ByteDisplay
impl Eq for ByteDisplay
impl StructuralPartialEq for ByteDisplay
Auto Trait Implementations§
impl Freeze for ByteDisplay
impl RefUnwindSafe for ByteDisplay
impl Send for ByteDisplay
impl Sync for ByteDisplay
impl Unpin for ByteDisplay
impl UnsafeUnpin for ByteDisplay
impl UnwindSafe for ByteDisplay
Blanket Implementations§
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