Struct fuels_core::StringToken
source · [−]pub struct StringToken { /* private fields */ }
Implementations
sourceimpl StringToken
impl StringToken
pub fn new(data: String, expected_len: usize) -> Self
pub fn get_encodable_str(&self) -> Result<&str, CodecError>
Trait Implementations
sourceimpl Clone for StringToken
impl Clone for StringToken
sourcefn clone(&self) -> StringToken
fn clone(&self) -> StringToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StringToken
impl Debug for StringToken
sourceimpl Default for StringToken
impl Default for StringToken
sourcefn default() -> StringToken
fn default() -> StringToken
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StringToken> for StringToken
impl PartialEq<StringToken> for StringToken
sourcefn eq(&self, other: &StringToken) -> bool
fn eq(&self, other: &StringToken) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Tokenizable for StringToken
impl Tokenizable for StringToken
sourcefn from_token(token: Token) -> Result<Self, Error>
fn from_token(token: Token) -> Result<Self, Error>
Converts a Token
into expected type.
sourcefn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for StringToken
impl StructuralEq for StringToken
impl StructuralPartialEq for StringToken
Auto Trait Implementations
impl RefUnwindSafe for StringToken
impl Send for StringToken
impl Sync for StringToken
impl Unpin for StringToken
impl UnwindSafe for StringToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more