pub struct RangeValue {
pub lo: Value,
pub hi: Value,
pub excl: bool,
}Expand description
Uniquely owned range endpoints. Cloning a range clones its endpoint Values; sharing the payload would change native mutation and collector edge counts.
Fields§
§lo: ValueThe lower bound.
hi: ValueThe upper bound.
excl: boolWhether the upper bound is excluded.
Trait Implementations§
Source§impl Clone for RangeValue
impl Clone for RangeValue
Source§fn clone(&self) -> RangeValue
fn clone(&self) -> RangeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RangeValue
impl !Send for RangeValue
impl !Sync for RangeValue
impl !UnwindSafe for RangeValue
impl Freeze for RangeValue
impl Unpin for RangeValue
impl UnsafeUnpin for RangeValue
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