Struct lc_render::scale::band::BandScale [−][src]
pub struct BandScale { /* fields omitted */ }
Expand description
BandScale represents axis scale with categories.
Implementations
impl BandScale
[src]
impl BandScale
[src]pub fn new(domain: Vec<String>, range_start: i32, range_end: i32) -> Self
[src]
pub fn new(domain: Vec<String>, range_start: i32, range_end: i32) -> Self
[src]Create a new BandScale.
pub fn range_start(&self) -> i32
[src]
pub fn range_start(&self) -> i32
[src]Get scale range start.
pub fn set_inner_padding(self, padding: f32) -> Self
[src]
pub fn set_inner_padding(self, padding: f32) -> Self
[src]Set scale inner padding.
pub fn set_outer_padding(self, padding: f32) -> Self
[src]
pub fn set_outer_padding(self, padding: f32) -> Self
[src]Set scale inner padding.
pub fn set_no_boundaries_offset(self, no_boundaries_offset: bool) -> Self
[src]
pub fn set_no_boundaries_offset(self, no_boundaries_offset: bool) -> Self
[src]Change scale no boundaries offset parameter.
Trait Implementations
impl Scale<String> for BandScale
[src]
impl Scale<String> for BandScale
[src]fn is_range_reversed(&self) -> bool
[src]
fn is_range_reversed(&self) -> bool
[src]Check if scale range is reversed.
fn tick_offset(&self) -> f32
[src]
fn tick_offset(&self) -> f32
[src]Get the offset for each tick.
Auto Trait Implementations
impl RefUnwindSafe for BandScale
impl Send for BandScale
impl Sync for BandScale
impl Unpin for BandScale
impl UnwindSafe for BandScale
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more