Struct tabled::grid::dimension::StaticDimension
source · pub struct StaticDimension { /* private fields */ }
Available on crate feature
std
only.Expand description
A constant dimension.
Implementations§
source§impl StaticDimension
impl StaticDimension
sourcepub fn new(width: DimensionValue, height: DimensionValue) -> Self
pub fn new(width: DimensionValue, height: DimensionValue) -> Self
Creates a constant dimension.
Trait Implementations§
source§impl Clone for StaticDimension
impl Clone for StaticDimension
source§fn clone(&self) -> StaticDimension
fn clone(&self) -> StaticDimension
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 StaticDimension
impl Debug for StaticDimension
source§impl Dimension for StaticDimension
impl Dimension for StaticDimension
source§impl<R, C> Estimate<R, C> for StaticDimension
impl<R, C> Estimate<R, C> for StaticDimension
source§impl From<StaticDimension> for (DimensionValue, DimensionValue)
impl From<StaticDimension> for (DimensionValue, DimensionValue)
source§fn from(value: StaticDimension) -> Self
fn from(value: StaticDimension) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for StaticDimension
impl Send for StaticDimension
impl Sync for StaticDimension
impl Unpin for StaticDimension
impl UnwindSafe for StaticDimension
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