Struct substrate_stellar_sdk::compound_types::LimitedVarArray [−][src]
pub struct LimitedVarArray<T, const N: i32>(_);
Expand description
Type for an array whose length is not predefined but bounded by a constant
The generic variable T
specifies the types of the elements of this array.
The const generic N
specifies the maxmimum number of elements a value of this
type is allowed to have.
Implementations
Construct a new LimitedVarArray
from a vector
The length of the vector must not exceed N
. Otherwise this function returns
an error
Add an element to the byte vector
Return an Err
if the array already has the maximal number of elements.
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<T, const N: i32> RefUnwindSafe for LimitedVarArray<T, N> where
T: RefUnwindSafe,
impl<T, const N: i32> Send for LimitedVarArray<T, N> where
T: Send,
impl<T, const N: i32> Sync for LimitedVarArray<T, N> where
T: Sync,
impl<T, const N: i32> Unpin for LimitedVarArray<T, N> where
T: Unpin,
impl<T, const N: i32> UnwindSafe for LimitedVarArray<T, N> where
T: UnwindSafe,
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,