pub struct PxGridSpacing {
pub column: Px,
pub row: Px,
}
Expand description
Computed GridSpacing
.
Fields§
§column: Px
Spacing in-between columns, in layout pixels.
row: Px
Spacing in-between rows, in layout pixels.
Implementations§
Trait Implementations§
source§impl Clone for PxGridSpacing
impl Clone for PxGridSpacing
source§fn clone(&self) -> PxGridSpacing
fn clone(&self) -> PxGridSpacing
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 PxGridSpacing
impl Debug for PxGridSpacing
source§impl Default for PxGridSpacing
impl Default for PxGridSpacing
source§fn default() -> PxGridSpacing
fn default() -> PxGridSpacing
Returns the “default value” for a type. Read more
source§impl From<PxGridSpacing> for GridSpacing
impl From<PxGridSpacing> for GridSpacing
source§fn from(spacing: PxGridSpacing) -> Self
fn from(spacing: PxGridSpacing) -> Self
Column and row in device pixel length.
source§impl From<PxGridSpacing> for PxVector
impl From<PxGridSpacing> for PxVector
source§fn from(s: PxGridSpacing) -> Self
fn from(s: PxGridSpacing) -> Self
Converts to this type from the input type.
source§impl IntoVar<GridSpacing> for PxGridSpacing
impl IntoVar<GridSpacing> for PxGridSpacing
impl Copy for PxGridSpacing
impl IntoValue<GridSpacing> for PxGridSpacing
Auto Trait Implementations§
impl Freeze for PxGridSpacing
impl RefUnwindSafe for PxGridSpacing
impl Send for PxGridSpacing
impl Sync for PxGridSpacing
impl Unpin for PxGridSpacing
impl UnwindSafe for PxGridSpacing
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more