pub struct PredictionModeContextMap<SliceType: SliceWrapper<u8>> {
    pub literal_context_map: SliceType,
    pub predmode_speed_and_distance_context_map: SliceType,
}

Fields§

§literal_context_map: SliceType§predmode_speed_and_distance_context_map: SliceType

Implementations§

source§

impl<SliceType: SliceWrapper<u8> + SliceWrapperMut<u8>> PredictionModeContextMap<SliceType>

source

pub fn distance_context_map_mut(&mut self) -> &mut [u8]

source

pub fn set_stride_context_speed(&mut self, speed_max: [(u16, u16); 2])

source

pub fn set_context_map_speed(&mut self, speed_max: [(u16, u16); 2])

source

pub fn set_mixing_math(&mut self, math_enum: u8)

source

pub fn set_adv_context_map(&mut self, is_adv: u8)

source

pub fn set_mixing_values(&mut self, mixing_mask: &[u8; 8192])

source

pub fn get_mixing_values_mut(&mut self) -> &mut [u8]

source

pub fn set_combined_stride_context_speed(&mut self, speed_max: [(u16, u16); 2])

source

pub fn set_literal_prediction_mode(&mut self, val: LiteralPredictionModeNibble)

source§

impl<SliceType: SliceWrapper<u8>> PredictionModeContextMap<SliceType>

Trait Implementations§

source§

impl<SliceType: SliceWrapper<u8> + Clone> Clone for PredictionModeContextMap<SliceType>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<SliceType: Debug + SliceWrapper<u8>> Debug for PredictionModeContextMap<SliceType>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<SliceType: SliceWrapper<u8> + Clone + Copy> Copy for PredictionModeContextMap<SliceType>

Auto Trait Implementations§

§

impl<SliceType> RefUnwindSafe for PredictionModeContextMap<SliceType>where SliceType: RefUnwindSafe,

§

impl<SliceType> Send for PredictionModeContextMap<SliceType>where SliceType: Send,

§

impl<SliceType> Sync for PredictionModeContextMap<SliceType>where SliceType: Sync,

§

impl<SliceType> Unpin for PredictionModeContextMap<SliceType>where SliceType: Unpin,

§

impl<SliceType> UnwindSafe for PredictionModeContextMap<SliceType>where SliceType: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.