pub struct ArrayString<'a, A> { /* private fields */ }Expand description
A string, which lives on top of a given array type.
Implementations§
Trait Implementations§
Source§impl<'a, A: Clone> Clone for ArrayString<'a, A>
 
impl<'a, A: Clone> Clone for ArrayString<'a, A>
Source§fn clone(&self) -> ArrayString<'a, A>
 
fn clone(&self) -> ArrayString<'a, A>
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<A> Debug for ArrayString<'_, A>
 
impl<A> Debug for ArrayString<'_, A>
Source§impl<'a, A> DecoderFor<'a, ArrayString<'a, A>> for ArrayString<'a, A>
 
impl<'a, A> DecoderFor<'a, ArrayString<'a, A>> for ArrayString<'a, A>
fn decode_for(buf: &mut &'a [u8]) -> Result<ArrayString<'a, A>, ParseError>
Source§impl<'a, A: Default> Default for ArrayString<'a, A>
 
impl<'a, A: Default> Default for ArrayString<'a, A>
Source§fn default() -> ArrayString<'a, A>
 
fn default() -> ArrayString<'a, A>
Returns the “default value” for a type. Read more
Source§impl<T, A> EncoderFor<ArrayString<'static, A>> for T
 
impl<T, A> EncoderFor<ArrayString<'static, A>> for T
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<A> PartialEq<&str> for ArrayString<'_, A>
 
impl<A> PartialEq<&str> for ArrayString<'_, A>
Source§impl<A> PartialEq<str> for ArrayString<'_, A>
 
impl<A> PartialEq<str> for ArrayString<'_, A>
Source§impl<A> PartialEq for ArrayString<'_, A>
 
impl<A> PartialEq for ArrayString<'_, A>
Source§impl<'a, A> TryInto<&'a str> for ArrayString<'a, A>
 
impl<'a, A> TryInto<&'a str> for ArrayString<'a, A>
impl<'a, A: Copy> Copy for ArrayString<'a, A>
impl<A> Eq for ArrayString<'_, A>
Auto Trait Implementations§
impl<'a, A> Freeze for ArrayString<'a, A>
impl<'a, A> RefUnwindSafe for ArrayString<'a, A>where
    A: RefUnwindSafe,
impl<'a, A> Send for ArrayString<'a, A>where
    A: Send,
impl<'a, A> Sync for ArrayString<'a, A>where
    A: Sync,
impl<'a, A> Unpin for ArrayString<'a, A>where
    A: Unpin,
impl<'a, A> UnwindSafe for ArrayString<'a, A>where
    A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> EncoderForExt for Twhere
    T: ?Sized,
 
impl<T> EncoderForExt for Twhere
    T: ?Sized,
Source§fn to_vec<F: 'static>(&self) -> Vec<u8> ⓘwhere
    Self: EncoderFor<F>,
 
fn to_vec<F: 'static>(&self) -> Vec<u8> ⓘwhere
    Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F: 'static>(&self, buf: &mut [u8]) -> Result<usize, usize>where
    Self: EncoderFor<F>,
 
fn encode_buffer<F: 'static>(&self, buf: &mut [u8]) -> Result<usize, usize>where
    Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F: 'static>(
    &self,
    buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
    Self: EncoderFor<F>,
 
fn encode_buffer_uninit<'a, F: 'static>(
    &self,
    buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
    Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.