pub(crate) struct State {
col_widths: Vec<f32>,
row_heights: Vec<f32>,
}
Fields§
§col_widths: Vec<f32>
§row_heights: Vec<f32>
Implementations§
source§impl State
impl State
pub fn load(ctx: &Context, id: Id) -> Option<Self>
pub fn store(self, ctx: &Context, id: Id)
fn set_min_col_width(&mut self, col: usize, width: f32)
fn set_min_row_height(&mut self, row: usize, height: f32)
fn col_width(&self, col: usize) -> Option<f32>
fn row_height(&self, row: usize) -> Option<f32>
fn full_width(&self, x_spacing: f32) -> f32
Trait Implementations§
source§impl PartialEq for State
impl PartialEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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