PackArrayString

Trait PackArrayString 

Source
pub trait PackArrayString {
    // Required method
    fn pack_into<const SIZE: usize>(
        &self,
        s: &mut ArrayString<SIZE>,
    ) -> Result<(), PackError>;
}
Expand description

Trait for structs that can pack themselves into the end of a ArrayString

Required Methods§

Source

fn pack_into<const SIZE: usize>( &self, s: &mut ArrayString<SIZE>, ) -> Result<(), PackError>

Try to append self to the end of a ArrayString

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§