pub struct MuxedContract {
pub contract_id: [u8; 32],
pub id: u64,
}Expand description
A muxed contract address (W...): a contract identifier paired with a
64-bit multiplexing id.
Fields§
§contract_id: [u8; 32]§id: u64Implementations§
Source§impl MuxedContract
impl MuxedContract
pub const ENCODED_LEN: usize
pub fn to_string(&self) -> HeaplessString<{ Self::ENCODED_LEN }>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
pub fn from_slice(s: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for MuxedContract
impl Clone for MuxedContract
impl Copy for MuxedContract
Source§impl Debug for MuxedContract
impl Debug for MuxedContract
Source§impl Display for MuxedContract
impl Display for MuxedContract
impl Eq for MuxedContract
Source§impl FromStr for MuxedContract
impl FromStr for MuxedContract
Source§impl Hash for MuxedContract
impl Hash for MuxedContract
Source§impl Ord for MuxedContract
impl Ord for MuxedContract
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MuxedContract
impl PartialEq for MuxedContract
Source§impl PartialOrd for MuxedContract
impl PartialOrd for MuxedContract
impl StructuralPartialEq for MuxedContract
Auto Trait Implementations§
impl Freeze for MuxedContract
impl RefUnwindSafe for MuxedContract
impl Send for MuxedContract
impl Sync for MuxedContract
impl Unpin for MuxedContract
impl UnsafeUnpin for MuxedContract
impl UnwindSafe for MuxedContract
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