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