Type Alias FieldSliceMut

Source
pub type FieldSliceMut<'a, P> = FieldBuffer<P, FieldSliceDataMut<'a, P>>;
Expand description

Alias for a field buffer over a mutably borrowed slice.

Aliased Type§

pub struct FieldSliceMut<'a, P> { /* private fields */ }

Implementations§

Source§

impl<'a, P: PackedField> FieldSliceMut<'a, P>

Source

pub fn from_slice(log_len: usize, slice: &'a mut [P]) -> Result<Self, Error>

Create a new FieldSliceMut from a mutable slice of packed values.

§Throws
  • IncorrectArgumentLength if the number of field elements does not fit the slice.len() exactly.

Trait Implementations§

Source§

impl<'a, P: PackedField, Data: DerefMut<Target = [P]>> From<&'a mut FieldBuffer<P, Data>> for FieldSliceMut<'a, P>

Source§

fn from(buffer: &'a mut FieldBuffer<P, Data>) -> Self

Converts to this type from the input type.