pub struct LimitedString<const N: i32>(/* private fields */);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§
Source§impl<const N: i32> LimitedString<N>
impl<const N: i32> LimitedString<N>
Trait Implementations§
Source§impl<const N: i32> Clone for LimitedString<N>
impl<const N: i32> Clone for LimitedString<N>
Source§fn clone(&self) -> LimitedString<N>
fn clone(&self) -> LimitedString<N>
Returns a duplicate 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 N: i32> Debug for LimitedString<N>
impl<const N: i32> Debug for LimitedString<N>
Source§impl<const N: i32> PartialEq for LimitedString<N>
impl<const N: i32> PartialEq for LimitedString<N>
Source§impl<const N: i32> XdrCodec for LimitedString<N>
impl<const N: i32> XdrCodec for LimitedString<N>
Source§fn to_xdr_buffered(&self, write_stream: &mut WriteStream)
fn to_xdr_buffered(&self, write_stream: &mut WriteStream)
The XDR encoder implementation for LimitedString
Source§fn from_xdr_buffered<R: AsRef<[u8]>>(
read_stream: &mut ReadStream<R>,
) -> Result<Self, DecodeError>
fn from_xdr_buffered<R: AsRef<[u8]>>( read_stream: &mut ReadStream<R>, ) -> Result<Self, DecodeError>
The XDR decoder implementation for LimitedString
Source§fn from_xdr<T: AsRef<[u8]>>(input: T) -> Result<Self, DecodeError>
fn from_xdr<T: AsRef<[u8]>>(input: T) -> Result<Self, DecodeError>
Decode XDR provided as a reference to a byte vector Read more
Source§fn from_base64_xdr<T: AsRef<[u8]>>(input: T) -> Result<Self, DecodeError>
fn from_base64_xdr<T: AsRef<[u8]>>(input: T) -> Result<Self, DecodeError>
Decode this type from base64 encoded XDR Read more
impl<const N: i32> Eq for LimitedString<N>
impl<const N: i32> StructuralPartialEq for LimitedString<N>
Auto Trait Implementations§
impl<const N: i32> Freeze for LimitedString<N>
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§
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