pub struct Bounds {
pub lo: Value,
pub ext: Value,
}Expand description
The range a pointer is known to lie in.
Two values and not two numbers, because the range of a heap allocation is not known until it is made. Where they are constants the optimizer folds them like any other constant, which is the case document 07 section 7.4 collapses into one comparison.
Fields§
§lo: ValueWhere the range starts.
ext: ValueHow many bytes long it is.
Trait Implementations§
impl Copy for Bounds
impl Eq for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin for Bounds
impl UnwindSafe for Bounds
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