Struct papergrid::dimension::spanned::SpannedGridDimension
source · pub struct SpannedGridDimension { /* private fields */ }
Expand description
A Dimension
implementation which calculates exact column/row width/height.
Implementations§
source§impl SpannedGridDimension
impl SpannedGridDimension
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 SpannedGridDimension
impl Clone for SpannedGridDimension
source§fn clone(&self) -> SpannedGridDimension
fn clone(&self) -> SpannedGridDimension
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 SpannedGridDimension
impl Debug for SpannedGridDimension
source§impl Default for SpannedGridDimension
impl Default for SpannedGridDimension
source§fn default() -> SpannedGridDimension
fn default() -> SpannedGridDimension
Returns the “default value” for a type. Read more
source§impl Dimension for SpannedGridDimension
impl Dimension for SpannedGridDimension
source§impl<R> Estimate<R, SpannedConfig> for SpannedGridDimension
impl<R> Estimate<R, SpannedConfig> for SpannedGridDimension
source§fn estimate(&mut self, records: R, cfg: &SpannedConfig)
fn estimate(&mut self, records: R, cfg: &SpannedConfig)
Estimates a metric.
source§impl PartialEq for SpannedGridDimension
impl PartialEq for SpannedGridDimension
source§fn eq(&self, other: &SpannedGridDimension) -> bool
fn eq(&self, other: &SpannedGridDimension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SpannedGridDimension
impl StructuralPartialEq for SpannedGridDimension
Auto Trait Implementations§
impl Freeze for SpannedGridDimension
impl RefUnwindSafe for SpannedGridDimension
impl Send for SpannedGridDimension
impl Sync for SpannedGridDimension
impl Unpin for SpannedGridDimension
impl UnwindSafe for SpannedGridDimension
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
)