pub struct PeekableGridDimension { /* private fields */ }
Expand description
A Dimension
implementation which calculates exact column/row width/height for Records
which used Cell
cells.
It is a specialization of IterGridDimension
.
Implementations§
Source§impl PeekableGridDimension
impl PeekableGridDimension
Sourcepub fn height<R>(records: R, cfg: &SpannedConfig) -> Vec<usize>
pub fn height<R>(records: R, cfg: &SpannedConfig) -> Vec<usize>
Calculates height of rows.
Sourcepub fn width<R>(records: R, cfg: &SpannedConfig) -> Vec<usize>
pub fn width<R>(records: R, cfg: &SpannedConfig) -> Vec<usize>
Calculates width of columns.
Trait Implementations§
Source§impl Clone for PeekableGridDimension
impl Clone for PeekableGridDimension
Source§fn clone(&self) -> PeekableGridDimension
fn clone(&self) -> PeekableGridDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PeekableGridDimension
impl Debug for PeekableGridDimension
Source§impl Default for PeekableGridDimension
impl Default for PeekableGridDimension
Source§fn default() -> PeekableGridDimension
fn default() -> PeekableGridDimension
Returns the “default value” for a type. Read more
Source§impl Dimension for PeekableGridDimension
impl Dimension for PeekableGridDimension
Source§impl<R> Estimate<R, SpannedConfig> for PeekableGridDimension
impl<R> Estimate<R, SpannedConfig> for PeekableGridDimension
Source§fn estimate(&mut self, records: R, cfg: &SpannedConfig)
fn estimate(&mut self, records: R, cfg: &SpannedConfig)
Estimates a metric.
Source§impl PartialEq for PeekableGridDimension
impl PartialEq for PeekableGridDimension
impl Eq for PeekableGridDimension
impl StructuralPartialEq for PeekableGridDimension
Auto Trait Implementations§
impl Freeze for PeekableGridDimension
impl RefUnwindSafe for PeekableGridDimension
impl Send for PeekableGridDimension
impl Sync for PeekableGridDimension
impl Unpin for PeekableGridDimension
impl UnwindSafe for PeekableGridDimension
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