Enum fuels_types::Token
source · pub enum Token {
}
Variants§
Unit
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
Bool(bool)
B256([u8; 32])
Array(Vec<Token>)
Vector(Vec<Token>)
String(StringToken)
Struct(Vec<Token>)
Enum(Box<EnumSelector>)
Tuple(Vec<Token>)
RawSlice(Vec<u64>)
Bytes(Vec<u8>)
Trait Implementations§
source§impl PartialEq<Token> for Token
impl PartialEq<Token> for Token
source§impl Tokenizable for Token
impl Tokenizable for Token
source§fn from_token(token: Token) -> Result<Self>
fn from_token(token: Token) -> Result<Self>
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 StructuralPartialEq for Token
Auto Trait Implementations§
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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