pub struct SeqSpace { /* private fields */ }Expand description
A modular sequence-number space of bits bits (1..=31).
Implementations§
Source§impl SeqSpace
impl SeqSpace
Sourcepub const fn new(bits: u32) -> Self
pub const fn new(bits: u32) -> Self
A bits-wide space.
§Panics
In a const context (compile error) or at runtime if bits is 0
or exceeds MAX_SEQ_BITS.
Trait Implementations§
impl Copy for SeqSpace
impl Eq for SeqSpace
impl StructuralPartialEq for SeqSpace
Auto Trait Implementations§
impl Freeze for SeqSpace
impl RefUnwindSafe for SeqSpace
impl Send for SeqSpace
impl Sync for SeqSpace
impl Unpin for SeqSpace
impl UnsafeUnpin for SeqSpace
impl UnwindSafe for SeqSpace
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