pub struct SubAssetId(/* private fields */);Expand description
FuelVM atomic array type.
Implementations§
Source§impl SubAssetId
impl SubAssetId
Sourcepub const fn zeroed() -> SubAssetId
pub const fn zeroed() -> SubAssetId
Zeroes bytes constructor.
Sourcepub fn from_bytes_ref_checked(bytes: &[u8]) -> Option<&Self>
pub fn from_bytes_ref_checked(bytes: &[u8]) -> Option<&Self>
Sourcepub fn from_bytes_ref(bytes: &[u8; 32]) -> &Self
pub fn from_bytes_ref(bytes: &[u8; 32]) -> &Self
Trait Implementations§
Source§impl AsMut<[u8]> for SubAssetId
impl AsMut<[u8]> for SubAssetId
Source§impl AsRef<[u8]> for SubAssetId
impl AsRef<[u8]> for SubAssetId
Source§impl Clone for SubAssetId
impl Clone for SubAssetId
Source§fn clone(&self) -> SubAssetId
fn clone(&self) -> SubAssetId
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 SubAssetId
impl Debug for SubAssetId
Source§impl Default for SubAssetId
impl Default for SubAssetId
Source§fn default() -> SubAssetId
fn default() -> SubAssetId
Returns the “default value” for a type. Read more
Source§impl Deref for SubAssetId
impl Deref for SubAssetId
Source§impl DerefMut for SubAssetId
impl DerefMut for SubAssetId
Source§impl Deserialize for SubAssetId
impl Deserialize for SubAssetId
Source§fn decode_static<I: Input + ?Sized>(buffer: &mut I) -> Result<Self, Error>
fn decode_static<I: Input + ?Sized>(buffer: &mut I) -> Result<Self, Error>
Decodes static part of
Self from the buffer.Source§fn decode_dynamic<I: Input + ?Sized>(
&mut self,
buffer: &mut I,
) -> Result<(), Error>
fn decode_dynamic<I: Input + ?Sized>( &mut self, buffer: &mut I, ) -> Result<(), Error>
Decodes dynamic part of the information from the
buffer to fill Self.
The default implementation does nothing. Dynamically-sized contains should
override this.Source§impl Display for SubAssetId
impl Display for SubAssetId
Source§impl FromStr for SubAssetId
impl FromStr for SubAssetId
Source§impl Hash for SubAssetId
impl Hash for SubAssetId
Source§impl LowerHex for SubAssetId
impl LowerHex for SubAssetId
Source§impl Ord for SubAssetId
impl Ord for SubAssetId
Source§fn cmp(&self, other: &SubAssetId) -> Ordering
fn cmp(&self, other: &SubAssetId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SubAssetId
impl PartialEq for SubAssetId
Source§impl PartialOrd for SubAssetId
impl PartialOrd for SubAssetId
Source§impl Serialize for SubAssetId
impl Serialize for SubAssetId
Source§fn size_static(&self) -> usize
fn size_static(&self) -> usize
Size of the static part of the serialized object, in bytes.
Saturates to usize::MAX on overflow.
Source§fn size_dynamic(&self) -> usize
fn size_dynamic(&self) -> usize
Size of the dynamic part, in bytes.
Saturates to usize::MAX on overflow.
Source§fn encode_static<O: Output + ?Sized>(&self, buffer: &mut O) -> Result<(), Error>
fn encode_static<O: Output + ?Sized>(&self, buffer: &mut O) -> Result<(), Error>
Encodes staticly-sized part of
Self.Source§fn encode_dynamic<O: Output + ?Sized>(
&self,
buffer: &mut O,
) -> Result<(), Error>
fn encode_dynamic<O: Output + ?Sized>( &self, buffer: &mut O, ) -> Result<(), Error>
Encodes dynamically-sized part of
Self.
The default implementation does nothing. Dynamically-sized contains should
override this.Source§fn size(&self) -> usize
fn size(&self) -> usize
Total size of the serialized object, in bytes.
Saturates to usize::MAX on overflow.
Source§impl TryFrom<&[u8]> for SubAssetId
impl TryFrom<&[u8]> for SubAssetId
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Source§fn try_from(bytes: &[u8]) -> Result<SubAssetId, TryFromSliceError>
fn try_from(bytes: &[u8]) -> Result<SubAssetId, TryFromSliceError>
Performs the conversion.
Source§impl UpperHex for SubAssetId
impl UpperHex for SubAssetId
impl Copy for SubAssetId
impl Eq for SubAssetId
impl StructuralPartialEq for SubAssetId
Auto Trait Implementations§
impl Freeze for SubAssetId
impl RefUnwindSafe for SubAssetId
impl Send for SubAssetId
impl Sync for SubAssetId
impl Unpin for SubAssetId
impl UnwindSafe for SubAssetId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)