pub struct RangeAddress {
pub sheet: String,
pub start_row: u32,
pub start_col: u32,
pub end_row: u32,
pub end_col: u32,
}Fields§
§sheet: String§start_row: u32§start_col: u32§end_row: u32§end_col: u32Implementations§
Source§impl RangeAddress
impl RangeAddress
pub fn new( sheet: impl Into<String>, start_row: u32, start_col: u32, end_row: u32, end_col: u32, ) -> Result<Self, &'static str>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
Sourcepub fn to_sheet_range(&self) -> SheetRangeRef<'_>
pub fn to_sheet_range(&self) -> SheetRangeRef<'_>
Convert into the richer SheetRangeRef representation.
Trait Implementations§
Source§impl Clone for RangeAddress
impl Clone for RangeAddress
Source§fn clone(&self) -> RangeAddress
fn clone(&self) -> RangeAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeAddress
impl Debug for RangeAddress
Source§impl<'a> From<&'a RangeAddress> for SheetRangeRef<'a>
impl<'a> From<&'a RangeAddress> for SheetRangeRef<'a>
Source§fn from(value: &'a RangeAddress) -> Self
fn from(value: &'a RangeAddress) -> Self
Converts to this type from the input type.
Source§impl Hash for RangeAddress
impl Hash for RangeAddress
Source§impl PartialEq for RangeAddress
impl PartialEq for RangeAddress
Source§impl<'a> TryFrom<SheetRangeRef<'a>> for RangeAddress
impl<'a> TryFrom<SheetRangeRef<'a>> for RangeAddress
Source§type Error = SheetAddressError
type Error = SheetAddressError
The type returned in the event of a conversion error.
impl Eq for RangeAddress
impl StructuralPartialEq for RangeAddress
Auto Trait Implementations§
impl Freeze for RangeAddress
impl RefUnwindSafe for RangeAddress
impl Send for RangeAddress
impl Sync for RangeAddress
impl Unpin for RangeAddress
impl UnwindSafe for RangeAddress
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