pub struct RangeRef {
pub sheet: String,
pub start: Address,
pub end: Address,
}Expand description
A resolved rectangular range: a sheet (folded name) and an inclusive, top-left-first corner pair.
Range-node compression hinges on this being a single value regardless of
area: membership of a CellRef is an O(1) rectangle test
(RangeRef::contains), so finding the formula cells that read a changed
cell through a range costs one test per distinct range, never one per cell
in the range.
Fields§
§sheet: StringThe target sheet’s name, simple-case-folded.
start: AddressTop-left corner (minimum row, minimum column).
end: AddressBottom-right corner (maximum row, maximum column).
Implementations§
Trait Implementations§
impl Eq for RangeRef
Source§impl Ord for RangeRef
impl Ord for RangeRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RangeRef
impl PartialOrd for RangeRef
impl StructuralPartialEq for RangeRef
Auto Trait Implementations§
impl Freeze for RangeRef
impl RefUnwindSafe for RangeRef
impl Send for RangeRef
impl Sync for RangeRef
impl Unpin for RangeRef
impl UnsafeUnpin for RangeRef
impl UnwindSafe for RangeRef
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