pub enum BlockIx {
BlockIx(u32),
}Variants§
Implementations§
Source§impl BlockIx
impl BlockIx
pub fn new(n: u32) -> Self
pub const fn max_value() -> Self
pub const fn min_value() -> Self
pub const fn invalid_value() -> Self
pub fn is_valid(self) -> bool
pub fn is_invalid(self) -> bool
pub fn get(self) -> u32
pub fn plus(self, delta: u32) -> BlockIx
pub fn minus(self, delta: u32) -> BlockIx
pub fn dotdot(&self, last_plus1: BlockIx) -> Range<BlockIx>
Trait Implementations§
Source§impl Ord for BlockIx
impl Ord for BlockIx
Source§impl PartialOrd for BlockIx
impl PartialOrd for BlockIx
impl Copy for BlockIx
impl Eq for BlockIx
impl StructuralPartialEq for BlockIx
Auto Trait Implementations§
impl Freeze for BlockIx
impl RefUnwindSafe for BlockIx
impl Send for BlockIx
impl Sync for BlockIx
impl Unpin for BlockIx
impl UnwindSafe for BlockIx
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