umya-spreadsheet 3.0.0

umya-spreadsheet is a library written in pure Rust to read and write xlsx file.
Documentation
#[derive(Default, Debug, Clone)]
pub struct Anchor {
    left_column:   u32,
    left_offset:   u32,
    top_row:       u32,
    top_offset:    u32,
    right_column:  u32,
    right_offset:  u32,
    bottom_row:    u32,
    bottom_offset: u32,
}

impl Anchor {
    #[inline]
    #[must_use]
    pub fn left_column(&self) -> u32 {
        self.left_column
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use left_column()")]
    pub fn get_left_column(&self) -> u32 {
        self.left_column()
    }

    #[inline]
    pub fn set_left_column(&mut self, value: u32) {
        self.left_column = value;
    }

    #[inline]
    #[must_use]
    pub fn left_offset(&self) -> u32 {
        self.left_offset
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use left_offset()")]
    pub fn get_left_offset(&self) -> u32 {
        self.left_offset()
    }

    #[inline]
    pub fn set_left_offset(&mut self, value: u32) {
        self.left_offset = value;
    }

    #[inline]
    #[must_use]
    pub fn top_row(&self) -> u32 {
        self.top_row
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use top_row()")]
    pub fn get_top_row(&self) -> u32 {
        self.top_row()
    }

    #[inline]
    pub fn set_top_row(&mut self, value: u32) {
        self.top_row = value;
    }

    #[inline]
    #[must_use]
    pub fn top_offset(&self) -> u32 {
        self.top_offset
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use top_offset()")]
    pub fn get_top_offset(&self) -> u32 {
        self.top_offset()
    }

    #[inline]
    pub fn set_top_offset(&mut self, value: u32) {
        self.top_offset = value;
    }

    #[inline]
    #[must_use]
    pub fn right_column(&self) -> u32 {
        self.right_column
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use right_column()")]
    pub fn get_right_column(&self) -> u32 {
        self.right_column()
    }
    
    #[inline]
    pub fn set_right_column(&mut self, value: u32) {
        self.right_column = value;
    }

    #[inline]
    #[must_use]
    pub fn right_offset(&self) -> u32 {
        self.right_offset
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use right_offset()")]
    pub fn get_right_offset(&self) -> u32 {
        self.right_offset()
    }

    #[inline]
    pub fn set_right_offset(&mut self, value: u32) {
        self.right_offset = value;
    }

    #[inline]
    #[must_use]
    pub fn bottom_row(&self) -> u32 {
        self.bottom_row
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use bottom_row()")]
    pub fn get_bottom_row(&self) -> u32 {
        self.bottom_row()
    }

    #[inline]
    pub fn set_bottom_row(&mut self, value: u32) {
        self.bottom_row = value;
    }

    #[inline]
    #[must_use]
    pub fn bottom_offset(&self) -> u32 {
        self.bottom_offset
    }

    #[inline]
    #[must_use]
    #[deprecated(since = "3.0.0", note = "Use bottom_offset()")]
    pub fn get_bottom_offset(&self) -> u32 {
        self.bottom_offset()
    }

    #[inline]
    pub fn set_bottom_offset(&mut self, value: u32) {
        self.bottom_offset = value;
    }

    #[inline]
    pub(crate) fn adjustment_insert_row(&mut self, num_rows: u32) {
        self.top_row += num_rows;
        self.bottom_row += num_rows;
    }

    #[inline]
    pub(crate) fn adjustment_insert_column(&mut self, num_cols: u32) {
        self.left_column += num_cols;
        self.right_column += num_cols;
    }

    #[inline]
    pub(crate) fn adjustment_remove_row(&mut self, num_rows: u32) {
        self.top_row = self.top_row.saturating_sub(num_rows).max(1);
        self.bottom_row = self.bottom_row.saturating_sub(num_rows).max(1);
    }

    #[inline]
    pub(crate) fn adjustment_remove_column(&mut self, num_cols: u32) {
        self.left_column = self.left_column.saturating_sub(num_cols).max(1);
        self.right_column = self.right_column.saturating_sub(num_cols).max(1);
    }
}