pub struct MoveReferenceAdjuster { /* private fields */ }Expand description
Helper for adjusting references to moved ranges. This is used when a block of cells is moved; any formula references to cells fully inside the source rectangle are translated to the destination.
Implementations§
Source§impl MoveReferenceAdjuster
impl MoveReferenceAdjuster
pub fn new( from_sheet_id: SheetId, from_sheet_name: String, from_start_row: u32, from_start_col: u32, from_end_row: u32, from_end_col: u32, to_sheet_id: SheetId, to_sheet_name: String, row_offset: i32, col_offset: i32, ) -> Self
pub fn adjust_if_references( &self, formula: &ASTNode, formula_sheet_id: SheetId, ) -> Option<ASTNode>
Auto Trait Implementations§
impl Freeze for MoveReferenceAdjuster
impl RefUnwindSafe for MoveReferenceAdjuster
impl Send for MoveReferenceAdjuster
impl Sync for MoveReferenceAdjuster
impl Unpin for MoveReferenceAdjuster
impl UnsafeUnpin for MoveReferenceAdjuster
impl UnwindSafe for MoveReferenceAdjuster
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more