Struct bcd::Bcd [−][src]
pub struct Bcd<T: BcdType>(pub T);
Methods
impl<T: BcdType> Bcd<T>
[src]
impl<T: BcdType> Bcd<T>
pub const fn digits() -> usize
[src]
pub const fn digits() -> usize
pub fn digit(self, n: u8) -> u8
[src]
pub fn digit(self, n: u8) -> u8
pub fn add_with_overflow(self, other: Self, overflow: bool) -> (Self, bool)
[src]
pub fn add_with_overflow(self, other: Self, overflow: bool) -> (Self, bool)
Trait Implementations
impl<T: Eq + BcdType> Eq for Bcd<T>
[src]
impl<T: Eq + BcdType> Eq for Bcd<T>
impl<T: PartialEq + BcdType> PartialEq for Bcd<T>
[src]
impl<T: PartialEq + BcdType> PartialEq for Bcd<T>
fn eq(&self, other: &Bcd<T>) -> bool
[src]
fn eq(&self, other: &Bcd<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Bcd<T>) -> bool
[src]
fn ne(&self, other: &Bcd<T>) -> bool
This method tests for !=
.
impl<T: Debug + BcdType> Debug for Bcd<T>
[src]
impl<T: Debug + BcdType> Debug for Bcd<T>
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<T: Clone + BcdType> Clone for Bcd<T>
[src]
impl<T: Clone + BcdType> Clone for Bcd<T>
fn clone(&self) -> Bcd<T>
[src]
fn clone(&self) -> Bcd<T>
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<T: Copy + BcdType> Copy for Bcd<T>
[src]
impl<T: Copy + BcdType> Copy for Bcd<T>
impl<T: BcdType> Add for Bcd<T>
[src]
impl<T: BcdType> Add for Bcd<T>