pub struct URange { /* private fields */ }Expand description
The unsigned interval [lo, hi] (lo <=u hi, no wrap-around).
Implementations§
Source§impl URange
impl URange
Sourcepub fn new(lo: BitVec, hi: BitVec) -> Option<Self>
pub fn new(lo: BitVec, hi: BitVec) -> Option<Self>
[lo, hi], if the widths match and lo <=u hi.
Sourcepub fn as_constant(&self) -> Option<BitVec>
pub fn as_constant(&self) -> Option<BitVec>
The single value, if the interval has one.
Trait Implementations§
impl Copy for URange
impl Eq for URange
impl StructuralPartialEq for URange
Auto Trait Implementations§
impl Freeze for URange
impl RefUnwindSafe for URange
impl Send for URange
impl Sync for URange
impl Unpin for URange
impl UnsafeUnpin for URange
impl UnwindSafe for URange
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