pub struct CellRef {
pub row: usize,
pub col: usize,
}Expand description
A reference to a cell by row and column indices (0-indexed).
Fields§
§row: usize§col: usizeImplementations§
Source§impl CellRef
impl CellRef
pub fn new(row: usize, col: usize) -> CellRef
Sourcepub fn from_str(name: &str) -> Option<CellRef>
pub fn from_str(name: &str) -> Option<CellRef>
Parse a cell reference from spreadsheet notation (e.g., “A1”, “B2”, “AA10”). Returns None if the input is invalid.
Sourcepub fn col_to_letters(col: usize) -> String
pub fn col_to_letters(col: usize) -> String
Convert column index to spreadsheet-style letters (0 -> A, 25 -> Z, 26 -> AA).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellRef
impl<'de> Deserialize<'de> for CellRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CellRef
impl StructuralPartialEq for CellRef
Auto Trait Implementations§
impl Freeze for CellRef
impl RefUnwindSafe for CellRef
impl Send for CellRef
impl Sync for CellRef
impl Unpin for CellRef
impl UnwindSafe for CellRef
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