pub struct IterGridDimension { /* private fields */ }
Expand description
A Dimension
implementation which calculates exact column/row width/height.
Implementations§
Source§impl IterGridDimension
impl IterGridDimension
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.
Sourcepub fn width_total<R>(records: R, cfg: &SpannedConfig) -> usize
pub fn width_total<R>(records: R, cfg: &SpannedConfig) -> usize
Calculates width of columns.
Sourcepub fn height_total<R>(records: R, cfg: &SpannedConfig) -> usize
pub fn height_total<R>(records: R, cfg: &SpannedConfig) -> usize
Calculates height of rows.
Trait Implementations§
Source§impl Clone for IterGridDimension
impl Clone for IterGridDimension
Source§fn clone(&self) -> IterGridDimension
fn clone(&self) -> IterGridDimension
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 IterGridDimension
impl Debug for IterGridDimension
Source§impl Default for IterGridDimension
impl Default for IterGridDimension
Source§fn default() -> IterGridDimension
fn default() -> IterGridDimension
Returns the “default value” for a type. Read more
Source§impl Dimension for IterGridDimension
impl Dimension for IterGridDimension
Source§impl<R> Estimate<R, SpannedConfig> for IterGridDimension
impl<R> Estimate<R, SpannedConfig> for IterGridDimension
Source§fn estimate(&mut self, records: R, cfg: &SpannedConfig)
fn estimate(&mut self, records: R, cfg: &SpannedConfig)
Estimates a metric.
Source§impl PartialEq for IterGridDimension
impl PartialEq for IterGridDimension
impl Eq for IterGridDimension
impl StructuralPartialEq for IterGridDimension
Auto Trait Implementations§
impl Freeze for IterGridDimension
impl RefUnwindSafe for IterGridDimension
impl Send for IterGridDimension
impl Sync for IterGridDimension
impl Unpin for IterGridDimension
impl UnwindSafe for IterGridDimension
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