Struct style::properties::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<InheritedBox> for InheritedBox
impl PartialEq<InheritedBox> 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 RefUnwindSafe for InheritedBox
impl Send for InheritedBox
impl Sync for InheritedBox
impl Unpin for InheritedBox
impl UnwindSafe for InheritedBox
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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