Struct style::properties::generated::style_structs::Padding
source · pub struct Padding {
pub padding_top: T,
pub padding_right: T,
pub padding_bottom: T,
pub padding_left: T,
}
Expand description
The Padding style struct.
Fields§
§padding_top: T
The padding-top computed value.
padding_right: T
The padding-right computed value.
padding_bottom: T
The padding-bottom computed value.
padding_left: T
The padding-left computed value.
Implementations§
source§impl Padding
impl Padding
sourcepub fn set_padding_top(&mut self, v: T)
pub fn set_padding_top(&mut self, v: T)
Set padding-top.
sourcepub fn copy_padding_top_from(&mut self, other: &Self)
pub fn copy_padding_top_from(&mut self, other: &Self)
Set padding-top from other struct.
sourcepub fn reset_padding_top(&mut self, other: &Self)
pub fn reset_padding_top(&mut self, other: &Self)
Reset padding-top from the initial struct.
sourcepub fn clone_padding_top(&self) -> T
pub fn clone_padding_top(&self) -> T
Get the computed value for padding-top.
sourcepub fn set_padding_right(&mut self, v: T)
pub fn set_padding_right(&mut self, v: T)
Set padding-right.
sourcepub fn copy_padding_right_from(&mut self, other: &Self)
pub fn copy_padding_right_from(&mut self, other: &Self)
Set padding-right from other struct.
sourcepub fn reset_padding_right(&mut self, other: &Self)
pub fn reset_padding_right(&mut self, other: &Self)
Reset padding-right from the initial struct.
sourcepub fn clone_padding_right(&self) -> T
pub fn clone_padding_right(&self) -> T
Get the computed value for padding-right.
sourcepub fn set_padding_bottom(&mut self, v: T)
pub fn set_padding_bottom(&mut self, v: T)
Set padding-bottom.
sourcepub fn copy_padding_bottom_from(&mut self, other: &Self)
pub fn copy_padding_bottom_from(&mut self, other: &Self)
Set padding-bottom from other struct.
sourcepub fn reset_padding_bottom(&mut self, other: &Self)
pub fn reset_padding_bottom(&mut self, other: &Self)
Reset padding-bottom from the initial struct.
sourcepub fn clone_padding_bottom(&self) -> T
pub fn clone_padding_bottom(&self) -> T
Get the computed value for padding-bottom.
sourcepub fn set_padding_left(&mut self, v: T)
pub fn set_padding_left(&mut self, v: T)
Set padding-left.
sourcepub fn copy_padding_left_from(&mut self, other: &Self)
pub fn copy_padding_left_from(&mut self, other: &Self)
Set padding-left from other struct.
sourcepub fn reset_padding_left(&mut self, other: &Self)
pub fn reset_padding_left(&mut self, other: &Self)
Reset padding-left from the initial struct.
sourcepub fn clone_padding_left(&self) -> T
pub fn clone_padding_left(&self) -> T
Get the computed value for padding-left.
Trait Implementations§
source§impl MallocSizeOf for Padding
impl MallocSizeOf for Padding
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for Padding
impl PartialEq for Padding
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
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> 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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert