Struct brotli::enc::interface::LiteralPredictionModeNibble [−][src]
pub struct LiteralPredictionModeNibble(pub u8);
Methods
impl LiteralPredictionModeNibble
[src]
impl LiteralPredictionModeNibble
pub fn new(prediction_mode: u8) -> Result<Self, ()>
[src]
pub fn new(prediction_mode: u8) -> Result<Self, ()>
pub fn prediction_mode(&self) -> u8
[src]
pub fn prediction_mode(&self) -> u8
pub fn signed() -> Self
[src]
pub fn signed() -> Self
pub fn utf8() -> Self
[src]
pub fn utf8() -> Self
pub fn msb6() -> Self
[src]
pub fn msb6() -> Self
pub fn lsb6() -> Self
[src]
pub fn lsb6() -> Self
pub fn to_context_enum(&self) -> Result<ContextType, ()>
[src]
pub fn to_context_enum(&self) -> Result<ContextType, ()>
Trait Implementations
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
impl Copy for LiteralPredictionModeNibble
[src]
impl Copy for LiteralPredictionModeNibble
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 Debug for LiteralPredictionModeNibble
[src]
impl Debug for LiteralPredictionModeNibble
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for LiteralPredictionModeNibble
[src]
impl PartialEq 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 Hash for LiteralPredictionModeNibble
[src]
impl Hash for LiteralPredictionModeNibble
Auto Trait Implementations
impl Send for LiteralPredictionModeNibble
impl Send for LiteralPredictionModeNibble
impl Sync for LiteralPredictionModeNibble
impl Sync for LiteralPredictionModeNibble