Trait noise_protocol::U8Array [] [src]

pub trait U8Array: Copy {
    fn new() -> Self;
    fn new_with(_: u8) -> Self;
    fn from_slice(_: &[u8]) -> Self;
    fn len() -> usize;
    fn as_slice(&self) -> &[u8];
    fn as_mut(&mut self) -> &mut [u8];
}

A trait for fixed size u8 array.

Required Methods

Create a new array filled with all zeros.

Create a new array filled with a same value.

Create a new array from a slice.

Panics

The slice must be of the same length.

Length of the array.

As slice.

As mutable slice.

Implementors