Trait Unwrap

Source
pub trait Unwrap<T> {
    // Required method
    fn unwrap(self) -> T;
}
Expand description

A value that may be unwrapped.

use big_int::prelude::*;

let a: Tight<10> = 120.into();
let b: Tight<10> = 5.into();
let b: DenormalTight<10> = a.div_inner::<_, Tight<10>>(b);
let c: Tight<10> = b.unwrap();
assert_eq!(c, 24.into());

Required Methods§

Source

fn unwrap(self) -> T

Implementors§

Source§

impl<const BASE: usize, B: BigInt<BASE>> Unwrap<Denormal<BASE, B>> for Denormal<BASE, B>

Source§

impl<const BASE: usize, B: BigInt<BASE>> Unwrap<B> for Denormal<BASE, B>