Struct kas_core::layout::GridDimensions
source · Expand description
Grid dimensions
Fields§
§cols: u32
§col_spans: u32
§rows: u32
§row_spans: u32
Trait Implementations§
source§impl Clone for GridDimensions
impl Clone for GridDimensions
source§fn clone(&self) -> GridDimensions
fn clone(&self) -> GridDimensions
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 GridDimensions
impl Debug for GridDimensions
source§impl Default for GridDimensions
impl Default for GridDimensions
source§fn default() -> GridDimensions
fn default() -> GridDimensions
Returns the “default value” for a type. Read more
source§impl Hash for GridDimensions
impl Hash for GridDimensions
source§impl PartialEq<GridDimensions> for GridDimensions
impl PartialEq<GridDimensions> for GridDimensions
source§fn eq(&self, other: &GridDimensions) -> bool
fn eq(&self, other: &GridDimensions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GridDimensions
impl Eq for GridDimensions
impl StructuralEq for GridDimensions
impl StructuralPartialEq for GridDimensions
Auto Trait Implementations§
impl RefUnwindSafe for GridDimensions
impl Send for GridDimensions
impl Sync for GridDimensions
impl Unpin for GridDimensions
impl UnwindSafe for GridDimensions
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.