pub struct SRange { /* private fields */ }Expand description
The signed interval [lo, hi] (lo <=s hi, no wrap-around).
Implementations§
Source§impl SRange
impl SRange
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 <=s 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 SRange
impl Eq for SRange
impl StructuralPartialEq for SRange
Auto Trait Implementations§
impl Freeze for SRange
impl RefUnwindSafe for SRange
impl Send for SRange
impl Sync for SRange
impl Unpin for SRange
impl UnsafeUnpin for SRange
impl UnwindSafe for SRange
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