Trait big_int::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>