Struct pushrod::core::layout_manager::LayoutManagerPadding
source · pub struct LayoutManagerPadding {
pub left: i32,
pub right: i32,
pub top: i32,
pub bottom: i32,
pub spacing: i32,
}Expand description
This class defines the spacing rules and the padding for the layout manager. The layout manager must take the rules and honor it during the layout process.
Fields§
§left: i32§right: i32§top: i32§bottom: i32§spacing: i32Trait Implementations§
source§impl Clone for LayoutManagerPadding
impl Clone for LayoutManagerPadding
source§fn clone(&self) -> LayoutManagerPadding
fn clone(&self) -> LayoutManagerPadding
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 LayoutManagerPadding
impl Debug for LayoutManagerPadding
source§impl Default for LayoutManagerPadding
impl Default for LayoutManagerPadding
source§fn default() -> LayoutManagerPadding
fn default() -> LayoutManagerPadding
Returns the “default value” for a type. Read more
source§impl PartialEq for LayoutManagerPadding
impl PartialEq for LayoutManagerPadding
source§fn eq(&self, other: &LayoutManagerPadding) -> bool
fn eq(&self, other: &LayoutManagerPadding) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LayoutManagerPadding
Auto Trait Implementations§
impl Freeze for LayoutManagerPadding
impl RefUnwindSafe for LayoutManagerPadding
impl Send for LayoutManagerPadding
impl Sync for LayoutManagerPadding
impl Unpin for LayoutManagerPadding
impl UnwindSafe for LayoutManagerPadding
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)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