Struct divans::LiteralPredictionModeNibble [−][src]
pub struct LiteralPredictionModeNibble(pub u8);
Methods
impl LiteralPredictionModeNibble
[src]
impl LiteralPredictionModeNibble
pub fn new(prediction_mode: u8) -> Result<LiteralPredictionModeNibble, ()>
[src]
pub fn new(prediction_mode: u8) -> Result<LiteralPredictionModeNibble, ()>
pub fn prediction_mode(&self) -> u8
[src]
pub fn prediction_mode(&self) -> u8
pub fn signed() -> LiteralPredictionModeNibble
[src]
pub fn signed() -> LiteralPredictionModeNibble
pub fn utf8() -> LiteralPredictionModeNibble
[src]
pub fn utf8() -> LiteralPredictionModeNibble
pub fn msb6() -> LiteralPredictionModeNibble
[src]
pub fn msb6() -> LiteralPredictionModeNibble
pub fn lsb6() -> LiteralPredictionModeNibble
[src]
pub fn lsb6() -> LiteralPredictionModeNibble
pub fn to_context_enum(&self) -> Result<ContextType, ()>
[src]
pub fn to_context_enum(&self) -> Result<ContextType, ()>
Trait Implementations
impl Debug for LiteralPredictionModeNibble
[src]
impl Debug for LiteralPredictionModeNibble
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for LiteralPredictionModeNibble
[src]
impl Clone for LiteralPredictionModeNibble
fn clone(&self) -> LiteralPredictionModeNibble
[src]
fn clone(&self) -> LiteralPredictionModeNibble
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Hash for LiteralPredictionModeNibble
[src]
impl Hash for LiteralPredictionModeNibble
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<LiteralPredictionModeNibble> for LiteralPredictionModeNibble
[src]
impl PartialEq<LiteralPredictionModeNibble> for LiteralPredictionModeNibble
fn eq(&self, other: &LiteralPredictionModeNibble) -> bool
[src]
fn eq(&self, other: &LiteralPredictionModeNibble) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LiteralPredictionModeNibble) -> bool
[src]
fn ne(&self, other: &LiteralPredictionModeNibble) -> bool
This method tests for !=
.
impl Eq for LiteralPredictionModeNibble
[src]
impl Eq for LiteralPredictionModeNibble
impl Copy for LiteralPredictionModeNibble
[src]
impl Copy for LiteralPredictionModeNibble
impl Default for LiteralPredictionModeNibble
[src]
impl Default for LiteralPredictionModeNibble
fn default() -> LiteralPredictionModeNibble
[src]
fn default() -> LiteralPredictionModeNibble
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for LiteralPredictionModeNibble
impl Send for LiteralPredictionModeNibble
impl Sync for LiteralPredictionModeNibble
impl Sync for LiteralPredictionModeNibble