Struct digitex::StaticDigit [−][src]
Generic number expression with variable base
D: DigitBase
is used for how the value is expressed.
Bases 2 - Binary, 8 - octal, 10 - decimal, 16 - hexdeximal are prepared by default
If you need custom bases, you can make it in three lines to add, like…
use digitex::DigitBase; struct Tri; impl DigitBase for Tri { const BASE: u32 = 3; }
Implementations
impl<D: DigitBase> Digit<D>
[src]
Trait Implementations
impl<D: Clone + DigitBase> Clone for Digit<D>
[src]
impl<D: Copy + DigitBase> Copy for Digit<D>
[src]
impl<D: Debug + DigitBase> Debug for Digit<D>
[src]
impl<D: DigitBase> Display for Digit<D>
[src]
impl<D: Eq + DigitBase> Eq for Digit<D>
[src]
impl<D: PartialEq + DigitBase> PartialEq<Digit<D>> for Digit<D>
[src]
impl<D: DigitBase> StructuralEq for Digit<D>
[src]
impl<D: DigitBase> StructuralPartialEq for Digit<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for Digit<D>
impl<D> Send for Digit<D>
impl<D> Sync for Digit<D>
impl<D> Unpin for Digit<D>
impl<D> UnwindSafe for Digit<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,