Struct style::properties::style_structs::Counters
[−]
[src]
pub struct Counters { pub content: T, pub counter_increment: T, pub counter_reset: T, }
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.
Methods
impl Counters
[src]
pub fn set_content(&mut self, v: T)
[src]
Set content.
pub fn copy_content_from(&mut self, other: &Self)
[src]
Set content from other struct.
pub fn reset_content(&mut self, other: &Self)
[src]
Reset content from the initial struct.
pub fn clone_content(&self) -> T
[src]
Get the computed value for content.
pub fn set_counter_increment(&mut self, v: T)
[src]
Set counter-increment.
pub fn copy_counter_increment_from(&mut self, other: &Self)
[src]
Set counter-increment from other struct.
pub fn reset_counter_increment(&mut self, other: &Self)
[src]
Reset counter-increment from the initial struct.
pub fn clone_counter_increment(&self) -> T
[src]
Get the computed value for counter-increment.
pub fn set_counter_reset(&mut self, v: T)
[src]
Set counter-reset.
pub fn copy_counter_reset_from(&mut self, other: &Self)
[src]
Set counter-reset from other struct.
pub fn reset_counter_reset(&mut self, other: &Self)
[src]
Reset counter-reset from the initial struct.
pub fn clone_counter_reset(&self) -> T
[src]
Get the computed value for counter-reset.
Trait Implementations
impl Clone for Counters
[src]
fn clone(&self) -> Counters
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Counters
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Counters
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more