Struct fuels_types::Bytes
source · pub struct Bytes(pub Vec<u8>);
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
source§impl Parameterize for Bytes
impl Parameterize for Bytes
fn param_type() -> ParamType
source§impl PartialEq<Bytes> for Bytes
impl PartialEq<Bytes> for Bytes
source§impl PartialEq<Bytes> for Vec<u8>
impl PartialEq<Bytes> for Vec<u8>
source§impl PartialEq<Vec<u8, Global>> for Bytes
impl PartialEq<Vec<u8, Global>> for Bytes
source§impl Tokenizable for Bytes
impl Tokenizable for Bytes
source§fn from_token(token: Token) -> Result<Self>where
Self: Sized,
fn from_token(token: Token) -> Result<Self>where Self: Sized,
Converts a
Token
into expected type.source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for Bytes
impl StructuralEq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.