pub struct MaxLenString<const N: usize> { /* private fields */ }Implementations§
Source§impl<const N: usize> MaxLenString<N>
impl<const N: usize> MaxLenString<N>
Trait Implementations§
Source§impl<const N: usize> BorshDeserialize for MaxLenString<N>where
String: BorshDeserialize,
impl<const N: usize> BorshDeserialize for MaxLenString<N>where
String: BorshDeserialize,
Source§impl<const N: usize> BorshSerialize for MaxLenString<N>where
String: BorshSerialize,
impl<const N: usize> BorshSerialize for MaxLenString<N>where
String: BorshSerialize,
Source§impl<const N: usize> Clone for MaxLenString<N>
impl<const N: usize> Clone for MaxLenString<N>
Source§fn clone(&self) -> MaxLenString<N>
fn clone(&self) -> MaxLenString<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for MaxLenString<N>
impl<const N: usize> Debug for MaxLenString<N>
Source§impl<const N: usize> From<MaxLenString<N>> for String
impl<const N: usize> From<MaxLenString<N>> for String
Source§fn from(rhs: MaxLenString<N>) -> Self
fn from(rhs: MaxLenString<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> MaxSerializedLen for MaxLenString<N>
impl<const N: usize> MaxSerializedLen for MaxLenString<N>
const MAX_SERIALIZED_LEN: usize
Auto Trait Implementations§
impl<const N: usize> Freeze for MaxLenString<N>
impl<const N: usize> RefUnwindSafe for MaxLenString<N>
impl<const N: usize> Send for MaxLenString<N>
impl<const N: usize> Sync for MaxLenString<N>
impl<const N: usize> Unpin for MaxLenString<N>
impl<const N: usize> UnsafeUnpin for MaxLenString<N>
impl<const N: usize> UnwindSafe for MaxLenString<N>
Blanket Implementations§
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more