pub struct ScaleConfig<T>where
T: WithTypeAndSerializer,{ /* private fields */ }
Implementations§
Source§impl<T> ScaleConfig<T>where
T: WithTypeAndSerializer,
impl<T> ScaleConfig<T>where
T: WithTypeAndSerializer,
pub fn new_category(reverse: bool, values: Vec<T>) -> Self
pub fn with_type(self, type: ScaleType) -> Self
pub fn with_align_to_pixels(self, align_to_pixels: bool) -> Self
pub fn with_max(self, max: T) -> Self
pub fn with_min(self, min: T) -> Self
pub fn with_str_title(self, title: &str) -> Self
pub fn with_title(self, title: AxisTitle) -> Self
pub fn with_labels(self, labels: Vec<T>) -> Self
pub fn with_reverse(self, reverse: bool) -> Self
Trait Implementations§
Source§impl<T> Clone for ScaleConfig<T>where
T: WithTypeAndSerializer + Clone,
impl<T> Clone for ScaleConfig<T>where
T: WithTypeAndSerializer + Clone,
Source§fn clone(&self) -> ScaleConfig<T>
fn clone(&self) -> ScaleConfig<T>
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<T> Debug for ScaleConfig<T>where
T: WithTypeAndSerializer + Debug,
impl<T> Debug for ScaleConfig<T>where
T: WithTypeAndSerializer + Debug,
Source§impl<T> Default for ScaleConfig<T>where
T: WithTypeAndSerializer,
impl<T> Default for ScaleConfig<T>where
T: WithTypeAndSerializer,
Auto Trait Implementations§
impl<T> Freeze for ScaleConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScaleConfig<T>where
T: RefUnwindSafe,
impl<T> Send for ScaleConfig<T>where
T: Send,
impl<T> Sync for ScaleConfig<T>where
T: Sync,
impl<T> Unpin for ScaleConfig<T>where
T: Unpin,
impl<T> UnwindSafe for ScaleConfig<T>where
T: UnwindSafe,
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