Struct style::properties::generated::style_structs::InheritedBox
source · pub struct InheritedBox {
pub visibility: T,
pub writing_mode: T,
pub direction: T,
pub image_rendering: T,
}
Expand description
The InheritedBox style struct.
Fields§
§visibility: T
The visibility computed value.
writing_mode: T
The writing-mode computed value.
direction: T
The direction computed value.
image_rendering: T
The image-rendering computed value.
Implementations§
source§impl InheritedBox
impl InheritedBox
sourcepub fn set_visibility(&mut self, v: T)
pub fn set_visibility(&mut self, v: T)
Set visibility.
sourcepub fn copy_visibility_from(&mut self, other: &Self)
pub fn copy_visibility_from(&mut self, other: &Self)
Set visibility from other struct.
sourcepub fn reset_visibility(&mut self, other: &Self)
pub fn reset_visibility(&mut self, other: &Self)
Reset visibility from the initial struct.
sourcepub fn clone_visibility(&self) -> T
pub fn clone_visibility(&self) -> T
Get the computed value for visibility.
sourcepub fn set_writing_mode(&mut self, v: T)
pub fn set_writing_mode(&mut self, v: T)
Set writing-mode.
sourcepub fn copy_writing_mode_from(&mut self, other: &Self)
pub fn copy_writing_mode_from(&mut self, other: &Self)
Set writing-mode from other struct.
sourcepub fn reset_writing_mode(&mut self, other: &Self)
pub fn reset_writing_mode(&mut self, other: &Self)
Reset writing-mode from the initial struct.
sourcepub fn clone_writing_mode(&self) -> T
pub fn clone_writing_mode(&self) -> T
Get the computed value for writing-mode.
sourcepub fn set_direction(&mut self, v: T)
pub fn set_direction(&mut self, v: T)
Set direction.
sourcepub fn copy_direction_from(&mut self, other: &Self)
pub fn copy_direction_from(&mut self, other: &Self)
Set direction from other struct.
sourcepub fn reset_direction(&mut self, other: &Self)
pub fn reset_direction(&mut self, other: &Self)
Reset direction from the initial struct.
sourcepub fn clone_direction(&self) -> T
pub fn clone_direction(&self) -> T
Get the computed value for direction.
sourcepub fn set_image_rendering(&mut self, v: T)
pub fn set_image_rendering(&mut self, v: T)
Set image-rendering.
sourcepub fn copy_image_rendering_from(&mut self, other: &Self)
pub fn copy_image_rendering_from(&mut self, other: &Self)
Set image-rendering from other struct.
sourcepub fn reset_image_rendering(&mut self, other: &Self)
pub fn reset_image_rendering(&mut self, other: &Self)
Reset image-rendering from the initial struct.
sourcepub fn clone_image_rendering(&self) -> T
pub fn clone_image_rendering(&self) -> T
Get the computed value for image-rendering.
Trait Implementations§
source§impl Clone for InheritedBox
impl Clone for InheritedBox
source§fn clone(&self) -> InheritedBox
fn clone(&self) -> InheritedBox
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 InheritedBox
impl Debug for InheritedBox
source§impl MallocSizeOf for InheritedBox
impl MallocSizeOf for InheritedBox
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 InheritedBox
impl PartialEq for InheritedBox
source§fn eq(&self, other: &InheritedBox) -> bool
fn eq(&self, other: &InheritedBox) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InheritedBox
Auto Trait Implementations§
impl Freeze for InheritedBox
impl RefUnwindSafe for InheritedBox
impl Send for InheritedBox
impl Sync for InheritedBox
impl Unpin for InheritedBox
impl UnwindSafe for InheritedBox
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