packet

Trait ContiguousBuffer

Source
pub trait ContiguousBuffer: FragmentedBuffer + AsRef<[u8]> { }
Expand description

A buffer that is contiguous in memory.

If the implementing type is a buffer which exposes a prefix and a suffix, the AsRef implementation provides access only to the body. If AsMut is also implemented, it must provide access to the same bytes as AsRef.

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.

Implementations on Foreign Types§

Source§

impl<'a> ContiguousBuffer for &'a [u8]

Source§

impl<'a> ContiguousBuffer for &'a mut [u8]

Implementors§