[][src]Struct packet::buffer::Slice

pub struct Slice<'a> { /* fields omitted */ }

A static buffer.

Implementations

impl<'a> Buffer<'a>[src]

pub fn new(slice: &mut [u8]) -> Buffer<'_>[src]

Create a new static buffer wrapping the given slice.

Trait Implementations

impl<'a> AsMut<[u8]> for Buffer<'a>[src]

impl<'a> AsRef<[u8]> for Buffer<'a>[src]

impl<'a> Buffer for Buffer<'a>[src]

type Inner = &'a mut [u8]

Inner type used by the buffer.

impl<'a> Debug for Buffer<'a>[src]

impl<'a> Deref for Buffer<'a>[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'a> DerefMut for Buffer<'a>[src]

impl<'a> Eq for Buffer<'a>[src]

impl<'a> PartialEq<Buffer<'a>> for Buffer<'a>[src]

impl<'a> StructuralEq for Buffer<'a>[src]

impl<'a> StructuralPartialEq for Buffer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Buffer<'a>

impl<'a> Send for Buffer<'a>

impl<'a> Sync for Buffer<'a>

impl<'a> Unpin for Buffer<'a>

impl<'a> !UnwindSafe for Buffer<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.