pub struct BandScale { /* private fields */ }
Expand description
BandScale represents axis scale with categories.
Implementations§
Source§impl BandScale
impl BandScale
Sourcepub fn new(domain: Vec<String>, range_start: i32, range_end: i32) -> Self
pub fn new(domain: Vec<String>, range_start: i32, range_end: i32) -> Self
Create a new BandScale.
Sourcepub fn range_start(&self) -> i32
pub fn range_start(&self) -> i32
Get scale range start.
Sourcepub fn set_inner_padding(self, padding: f32) -> Self
pub fn set_inner_padding(self, padding: f32) -> Self
Set scale inner padding.
Sourcepub fn set_outer_padding(self, padding: f32) -> Self
pub fn set_outer_padding(self, padding: f32) -> Self
Set scale inner padding.
Sourcepub fn set_no_boundaries_offset(self, no_boundaries_offset: bool) -> Self
pub fn set_no_boundaries_offset(self, no_boundaries_offset: bool) -> Self
Change scale no boundaries offset parameter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BandScale
impl RefUnwindSafe for BandScale
impl Send for BandScale
impl Sync for BandScale
impl Unpin for BandScale
impl UnwindSafe for BandScale
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