pub trait Buffer {
    fn try_cast<T: MinimallyAligned>(&self, offset: u32) -> Result<&T, CastError>;
    fn try_cast_slice<T: MinimallyAligned>(
        &self,
        offset: u32,
        len: u32
    ) -> Result<&[T], CastError>; fn cast<T: MinimallyAligned>(&self, offset: u32) -> &T; fn cast_slice<T: MinimallyAligned>(&self, offset: u32, len: u32) -> &[T]Notable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]; }
Expand description

Additional methods on byte slices

Required Methods

Try to cast to T

Try to cast to T

Cast to T

Cast to slice of T

Implementations on Foreign Types

Try to cast to T

Try to cast to T

Cast to T

Cast to slice of T

Implementors