Skip to main content

IntegerResize

Trait IntegerResize 

Source
pub trait IntegerResize: Sized {
    type Output;

    // Required methods
    fn resize_unchecked(self, at_least_bits_precision: u32) -> Self::Output;
    fn try_resize(self, at_least_bits_precision: u32) -> Option<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn resize_unchecked(self, at_least_bits_precision: u32) -> Self::Output

Source

fn try_resize(self, at_least_bits_precision: u32) -> Option<Self::Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IntegerResize for BoxedUint

Available on crate feature alloc only.
Source§

impl<T> IntegerResize for ModMathValue<T>
where T: ModMathInt,

Available on crate features modmath and alloc only.