pub struct ValueStyleMap { /* private fields */ }
Expand description
A style-map is one way for conditional formatting of value formats.
Implementations§
Source§impl ValueStyleMap
impl ValueStyleMap
Sourcepub fn new<T: AsRef<str>>(condition: ValueCondition, applied_style: T) -> Self
pub fn new<T: AsRef<str>>(condition: ValueCondition, applied_style: T) -> Self
Create a stylemap for a ValueFormat. When the condition is fullfilled the style applied_style is used.
Sourcepub fn condition(&self) -> &ValueCondition
pub fn condition(&self) -> &ValueCondition
Condition
Sourcepub fn set_condition(&mut self, cond: ValueCondition)
pub fn set_condition(&mut self, cond: ValueCondition)
Condition
Sourcepub fn applied_style(&self) -> &String
pub fn applied_style(&self) -> &String
The applied style.
Sourcepub fn set_applied_style<S: AsRef<str>>(&mut self, style: S)
pub fn set_applied_style<S: AsRef<str>>(&mut self, style: S)
Sets the applied style.
Trait Implementations§
Source§impl Clone for ValueStyleMap
impl Clone for ValueStyleMap
Source§fn clone(&self) -> ValueStyleMap
fn clone(&self) -> ValueStyleMap
Returns a duplicate 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 ValueStyleMap
impl Debug for ValueStyleMap
Source§impl Default for ValueStyleMap
impl Default for ValueStyleMap
Source§fn default() -> ValueStyleMap
fn default() -> ValueStyleMap
Returns the “default value” for a type. Read more
Source§impl GetSize for ValueStyleMap
impl GetSize for ValueStyleMap
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)
fn get_heap_size_with_tracker<TRACKER: GetSizeTracker>( &self, tracker: TRACKER, ) -> (usize, TRACKER)
Determines how many bytes this object occupies inside the heap while using a
tracker
. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker
. Read moreAuto Trait Implementations§
impl Freeze for ValueStyleMap
impl RefUnwindSafe for ValueStyleMap
impl Send for ValueStyleMap
impl Sync for ValueStyleMap
impl Unpin for ValueStyleMap
impl UnwindSafe for ValueStyleMap
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