Struct substrate_stellar_sdk::compound_types::LimitedString [−][src]
pub struct LimitedString<const N: i32>(_);
Expand description
Type for an ASCII string whose length is not predefined but bounded by a constant
The const generic N
specifies the maxmimum number of ASCII characters a value of this
type is allowed to have.
Implementations
Construct a new LimitedString
from a byte vector
The byte vector represents an ASCII string.
The length of the byte vector must not exceed N
. Otherwise this function returns
an error
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<const N: i32> RefUnwindSafe for LimitedString<N>
impl<const N: i32> Send for LimitedString<N>
impl<const N: i32> Sync for LimitedString<N>
impl<const N: i32> Unpin for LimitedString<N>
impl<const N: i32> UnwindSafe for LimitedString<N>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
pub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,