Trait winter_utils::AsBytes[][src]

pub trait AsBytes {
    fn as_bytes(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }
Expand description

Defines a zero-copy representation of Self as a sequence of bytes.

Required methods

Returns a byte representation of self.

This method is intended to re-interpret the underlying memory as a sequence of bytes, and thus, should be zero-copy.

Implementations on Foreign Types

Flattens a two-dimensional array of bytes into a slice of bytes.

Flattens a slice of byte arrays into a slice of bytes.

Implementors