Struct fuels_core::StringToken
source · pub struct StringToken { /* private fields */ }
Implementations§
source§impl StringToken
impl StringToken
pub fn new(data: String, expected_len: usize) -> Self
pub fn get_encodable_str(&self) -> Result<&str, CodecError>
Trait Implementations§
source§impl Clone for StringToken
impl Clone for StringToken
source§fn clone(&self) -> StringToken
fn clone(&self) -> StringToken
Returns a copy 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 StringToken
impl Debug for StringToken
source§impl Default for StringToken
impl Default for StringToken
source§fn default() -> StringToken
fn default() -> StringToken
Returns the “default value” for a type. Read more
source§impl PartialEq<StringToken> for StringToken
impl PartialEq<StringToken> for StringToken
source§fn eq(&self, other: &StringToken) -> bool
fn eq(&self, other: &StringToken) -> bool
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§
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.