Struct fuels_types::SizedAsciiString
source · pub struct SizedAsciiString<const LEN: usize> { /* private fields */ }
Implementations§
source§impl<const LEN: usize> SizedAsciiString<LEN>
impl<const LEN: usize> SizedAsciiString<LEN>
pub fn new(data: String) -> Result<Self>
pub fn to_trimmed_str(&self) -> &str
pub fn to_left_trimmed_str(&self) -> &str
pub fn to_right_trimmed_str(&self) -> &str
sourcepub fn new_with_right_whitespace_padding(data: String) -> Result<Self>
pub fn new_with_right_whitespace_padding(data: String) -> Result<Self>
Pad data
string with whitespace characters on the right to fit into the SizedAsciiString
Trait Implementations§
source§impl<const LEN: usize> Clone for SizedAsciiString<LEN>
impl<const LEN: usize> Clone for SizedAsciiString<LEN>
source§fn clone(&self) -> SizedAsciiString<LEN>
fn clone(&self) -> SizedAsciiString<LEN>
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<const LEN: usize> Debug for SizedAsciiString<LEN>
impl<const LEN: usize> Debug for SizedAsciiString<LEN>
source§impl<const LEN: usize> Display for SizedAsciiString<LEN>
impl<const LEN: usize> Display for SizedAsciiString<LEN>
source§impl<const LEN: usize> From<SizedAsciiString<LEN>> for String
impl<const LEN: usize> From<SizedAsciiString<LEN>> for String
source§fn from(sized_ascii_str: SizedAsciiString<LEN>) -> Self
fn from(sized_ascii_str: SizedAsciiString<LEN>) -> Self
Converts to this type from the input type.
source§impl<const LEN: usize> Parameterize for SizedAsciiString<LEN>
impl<const LEN: usize> Parameterize for SizedAsciiString<LEN>
fn param_type() -> ParamType
source§impl<const LEN: usize> PartialEq<&str> for SizedAsciiString<LEN>
impl<const LEN: usize> PartialEq<&str> for SizedAsciiString<LEN>
source§impl<const LEN: usize> PartialEq<SizedAsciiString<LEN>> for &str
impl<const LEN: usize> PartialEq<SizedAsciiString<LEN>> for &str
source§fn eq(&self, other: &SizedAsciiString<LEN>) -> bool
fn eq(&self, other: &SizedAsciiString<LEN>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const LEN: usize> PartialEq<SizedAsciiString<LEN>> for SizedAsciiString<LEN>
impl<const LEN: usize> PartialEq<SizedAsciiString<LEN>> for SizedAsciiString<LEN>
source§fn eq(&self, other: &SizedAsciiString<LEN>) -> bool
fn eq(&self, other: &SizedAsciiString<LEN>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const LEN: usize> Tokenizable for SizedAsciiString<LEN>
impl<const LEN: usize> Tokenizable for SizedAsciiString<LEN>
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<const LEN: usize> Eq for SizedAsciiString<LEN>
impl<const LEN: usize> StructuralEq for SizedAsciiString<LEN>
impl<const LEN: usize> StructuralPartialEq for SizedAsciiString<LEN>
Auto Trait Implementations§
impl<const LEN: usize> RefUnwindSafe for SizedAsciiString<LEN>
impl<const LEN: usize> Send for SizedAsciiString<LEN>
impl<const LEN: usize> Sync for SizedAsciiString<LEN>
impl<const LEN: usize> Unpin for SizedAsciiString<LEN>
impl<const LEN: usize> UnwindSafe for SizedAsciiString<LEN>
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.