Struct p25::bits::Tribit
[−]
[src]
pub struct Tribit(_);
Three bits.
Methods
impl Tribit
[src]
pub fn new(bits: u8) -> Tribit
[src]
Construct a new Tribit
with the three given bits in the LSB position.
pub fn bits(&self) -> u8
[src]
Get the wrapped tribit, which is guaranteed to have only 3 LSBs.
Trait Implementations
impl Copy for Tribit
[src]
impl Clone for Tribit
[src]
fn clone(&self) -> Tribit
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Tribit
[src]
impl Debug for Tribit
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Tribit
[src]
fn eq(&self, __arg_0: &Tribit) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Tribit) -> bool
[src]
This method tests for !=
.