diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 22:07:04 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 22:07:04 +0200 |
| commit | 1e1eb95926f556e666bc20355327abd24d264858 (patch) | |
| tree | e40b68da80b984355baf68a36983d78bb2ec63dd /src/sheet/cell.rs | |
| parent | 5d15bed762c4c699bebc9b5f5e302fa61785ed51 (diff) | |
minor cleanup
Diffstat (limited to 'src/sheet/cell.rs')
| -rw-r--r-- | src/sheet/cell.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sheet/cell.rs b/src/sheet/cell.rs index 9608b93..3b18bde 100644 --- a/src/sheet/cell.rs +++ b/src/sheet/cell.rs @@ -89,6 +89,10 @@ pub struct CellRef { } impl CellRef { + /// # Safety + /// + /// This function shall only be called by the Sheet instance itsself or + /// if it has been assured that the `SheetId` is valid. pub unsafe fn new(sheet_id: SheetId, row: usize, column: usize, cell: Cell) -> Self { Self { sheet_id, |