pub struct Uint<T, const BITS: u32, const OFFSET: u32 = 0>(/* private fields */);
Expand description
任意のビット数の非負の整数を表現するための型
T
: 数値の内部的な型。 最低限BITS
分の数値を表現可能な型である必要がある。BITS
: 数値のビット数OFFSET
: 一つのT
に複数のUint
値がパックされる場合の、この数値のオフセット位置(ビット数)
Implementations§
Trait Implementations§
Source§impl<T: Ord, const BITS: u32, const OFFSET: u32> Ord for Uint<T, BITS, OFFSET>
impl<T: Ord, const BITS: u32, const OFFSET: u32> Ord for Uint<T, BITS, OFFSET>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, const BITS: u32, const OFFSET: u32> PartialOrd for Uint<T, BITS, OFFSET>
impl<T: PartialOrd, const BITS: u32, const OFFSET: u32> PartialOrd for Uint<T, BITS, OFFSET>
impl<T: Copy, const BITS: u32, const OFFSET: u32> Copy for Uint<T, BITS, OFFSET>
impl<T: Eq, const BITS: u32, const OFFSET: u32> Eq for Uint<T, BITS, OFFSET>
impl<T, const BITS: u32, const OFFSET: u32> StructuralPartialEq for Uint<T, BITS, OFFSET>
Auto Trait Implementations§
impl<T, const BITS: u32, const OFFSET: u32> Freeze for Uint<T, BITS, OFFSET>where
T: Freeze,
impl<T, const BITS: u32, const OFFSET: u32> RefUnwindSafe for Uint<T, BITS, OFFSET>where
T: RefUnwindSafe,
impl<T, const BITS: u32, const OFFSET: u32> Send for Uint<T, BITS, OFFSET>where
T: Send,
impl<T, const BITS: u32, const OFFSET: u32> Sync for Uint<T, BITS, OFFSET>where
T: Sync,
impl<T, const BITS: u32, const OFFSET: u32> Unpin for Uint<T, BITS, OFFSET>where
T: Unpin,
impl<T, const BITS: u32, const OFFSET: u32> UnwindSafe for Uint<T, BITS, OFFSET>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more