Struct papergrid::dimension::compact::CompactGridDimension
source · pub struct CompactGridDimension { /* private fields */ }
Expand description
A Dimension
implementation which calculates exact column/row width/height.
Implementations§
source§impl CompactGridDimension
impl CompactGridDimension
sourcepub fn height<R>(records: R, cfg: &CompactConfig) -> Vec<usize>
pub fn height<R>(records: R, cfg: &CompactConfig) -> Vec<usize>
Calculates height of rows.
sourcepub fn width<R>(records: R, cfg: &CompactConfig) -> Vec<usize>
pub fn width<R>(records: R, cfg: &CompactConfig) -> Vec<usize>
Calculates width of columns.
Trait Implementations§
source§impl Clone for CompactGridDimension
impl Clone for CompactGridDimension
source§fn clone(&self) -> CompactGridDimension
fn clone(&self) -> CompactGridDimension
Returns a copy 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 CompactGridDimension
impl Debug for CompactGridDimension
source§impl Default for CompactGridDimension
impl Default for CompactGridDimension
source§fn default() -> CompactGridDimension
fn default() -> CompactGridDimension
Returns the “default value” for a type. Read more
source§impl Dimension for CompactGridDimension
impl Dimension for CompactGridDimension
source§impl<R> Estimate<R, CompactConfig> for CompactGridDimension
impl<R> Estimate<R, CompactConfig> for CompactGridDimension
source§fn estimate(&mut self, records: R, cfg: &CompactConfig)
fn estimate(&mut self, records: R, cfg: &CompactConfig)
Estimates a metric.
source§impl PartialEq for CompactGridDimension
impl PartialEq for CompactGridDimension
source§fn eq(&self, other: &CompactGridDimension) -> bool
fn eq(&self, other: &CompactGridDimension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompactGridDimension
impl StructuralPartialEq for CompactGridDimension
Auto Trait Implementations§
impl Freeze for CompactGridDimension
impl RefUnwindSafe for CompactGridDimension
impl Send for CompactGridDimension
impl Sync for CompactGridDimension
impl Unpin for CompactGridDimension
impl UnwindSafe for CompactGridDimension
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)