Trait fuels_core::Tokenizable
source · pub trait Tokenizable {
fn from_token(token: Token) -> Result<Self, Error>
where
Self: Sized;
fn into_token(self) -> Token;
}
Required Methods§
sourcefn from_token(token: Token) -> Result<Self, Error>where
Self: Sized,
fn from_token(token: Token) -> Result<Self, Error>where
Self: Sized,
Converts a Token
into expected type.
sourcefn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.