pub struct SheetCellRef<'a> {
pub sheet: SheetLocator<'a>,
pub coord: RelativeCoord,
}Expand description
Sheet-scoped cell reference that retains relative/absolute anchors.
Fields§
§sheet: SheetLocator<'a>§coord: RelativeCoordImplementations§
Source§impl<'a> SheetCellRef<'a>
impl<'a> SheetCellRef<'a>
pub const fn new(sheet: SheetLocator<'a>, coord: RelativeCoord) -> Self
Sourcepub fn from_excel(
sheet: SheetLocator<'a>,
row: u32,
col: u32,
row_abs: bool,
col_abs: bool,
) -> Result<Self, SheetAddressError>
pub fn from_excel( sheet: SheetLocator<'a>, row: u32, col: u32, row_abs: bool, col_abs: bool, ) -> Result<Self, SheetAddressError>
Construct from Excel 1-based coordinates with anchor flags.
Sourcepub fn try_from_a1(
sheet: SheetLocator<'a>,
reference: &str,
) -> Result<Self, SheetAddressError>
pub fn try_from_a1( sheet: SheetLocator<'a>, reference: &str, ) -> Result<Self, SheetAddressError>
Parse an A1-style reference for this sheet.
Sourcepub fn as_ref(&self) -> SheetCellRef<'_>
pub fn as_ref(&self) -> SheetCellRef<'_>
Borrowing variant that preserves the lifetime of the sheet locator.
Sourcepub fn into_owned(self) -> SheetCellRef<'static>
pub fn into_owned(self) -> SheetCellRef<'static>
Convert into an owned 'static reference.
Trait Implementations§
Source§impl<'a> Clone for SheetCellRef<'a>
impl<'a> Clone for SheetCellRef<'a>
Source§fn clone(&self) -> SheetCellRef<'a>
fn clone(&self) -> SheetCellRef<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SheetCellRef<'a>
impl<'a> Debug for SheetCellRef<'a>
Source§impl<'a> Hash for SheetCellRef<'a>
impl<'a> Hash for SheetCellRef<'a>
Source§impl<'a> PartialEq for SheetCellRef<'a>
impl<'a> PartialEq for SheetCellRef<'a>
impl<'a> Eq for SheetCellRef<'a>
impl<'a> StructuralPartialEq for SheetCellRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SheetCellRef<'a>
impl<'a> RefUnwindSafe for SheetCellRef<'a>
impl<'a> Send for SheetCellRef<'a>
impl<'a> Sync for SheetCellRef<'a>
impl<'a> Unpin for SheetCellRef<'a>
impl<'a> UnwindSafe for SheetCellRef<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)