Struct style::properties::generated::style_structs::Counters
source · pub struct Counters {
pub content: T,
pub counter_increment: T,
pub counter_reset: T,
}
Expand description
The Counters style struct.
Fields§
§content: T
The content computed value.
counter_increment: T
The counter-increment computed value.
counter_reset: T
The counter-reset computed value.
Implementations§
source§impl Counters
impl Counters
sourcepub fn set_content(&mut self, v: T)
pub fn set_content(&mut self, v: T)
Set content.
sourcepub fn copy_content_from(&mut self, other: &Self)
pub fn copy_content_from(&mut self, other: &Self)
Set content from other struct.
sourcepub fn reset_content(&mut self, other: &Self)
pub fn reset_content(&mut self, other: &Self)
Reset content from the initial struct.
sourcepub fn clone_content(&self) -> T
pub fn clone_content(&self) -> T
Get the computed value for content.
sourcepub fn set_counter_increment(&mut self, v: T)
pub fn set_counter_increment(&mut self, v: T)
Set counter-increment.
sourcepub fn copy_counter_increment_from(&mut self, other: &Self)
pub fn copy_counter_increment_from(&mut self, other: &Self)
Set counter-increment from other struct.
sourcepub fn reset_counter_increment(&mut self, other: &Self)
pub fn reset_counter_increment(&mut self, other: &Self)
Reset counter-increment from the initial struct.
sourcepub fn clone_counter_increment(&self) -> T
pub fn clone_counter_increment(&self) -> T
Get the computed value for counter-increment.
sourcepub fn set_counter_reset(&mut self, v: T)
pub fn set_counter_reset(&mut self, v: T)
Set counter-reset.
sourcepub fn copy_counter_reset_from(&mut self, other: &Self)
pub fn copy_counter_reset_from(&mut self, other: &Self)
Set counter-reset from other struct.
sourcepub fn reset_counter_reset(&mut self, other: &Self)
pub fn reset_counter_reset(&mut self, other: &Self)
Reset counter-reset from the initial struct.
sourcepub fn clone_counter_reset(&self) -> T
pub fn clone_counter_reset(&self) -> T
Get the computed value for counter-reset.
Trait Implementations§
source§impl MallocSizeOf for Counters
impl MallocSizeOf for Counters
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 Counters
impl PartialEq for Counters
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnwindSafe for Counters
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