pub struct Delta<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Delta<'a>
impl<'a> Delta<'a>
Sourcepub fn reference(&mut self, reference: f64) -> &mut Self
pub fn reference(&mut self, reference: f64) -> &mut Self
Sets the reference value to compute the delta. By default, it is set to the current value.
Sourcepub fn position(&mut self, position: Position) -> &mut Self
pub fn position(&mut self, position: Position) -> &mut Self
Sets the position of delta with respect to the number.
default: bottom
Sourcepub fn valueformat(&mut self, valueformat: &'a str) -> &mut Self
pub fn valueformat(&mut self, valueformat: &'a str) -> &mut Self
Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
pub fn increasing(&mut self) -> &mut Increasing<'a>
pub fn decreasing(&mut self) -> &mut Decreasing<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Delta<'a>
impl<'a> RefUnwindSafe for Delta<'a>
impl<'a> Send for Delta<'a>
impl<'a> Sync for Delta<'a>
impl<'a> Unpin for Delta<'a>
impl<'a> UnwindSafe for Delta<'a>
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