pub struct Props<S: Scalar> {
pub name: String,
pub orientation: Orientation,
pub x1: f32,
pub y1: f32,
pub xy2: f32,
pub tick_len: f32,
pub title: Option<String>,
pub scale: Rc<dyn Scale<Scalar = S>>,
}Fields§
§name: StringA name given to the axis that will be used for CSS classes
orientation: OrientationHow the axis will be positioned in relation to other elements
x1: f32The start position
y1: f32The start position
xy2: f32The target position as x or y depending on orientation - x for left and right, y for bottom and top
tick_len: f32The length of ticks
title: Option<String>Any title to be drawn and associated with the axis
scale: Rc<dyn Scale<Scalar = S>>The scaling conversion to be used with the axis
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Props<S>
impl<S> !RefUnwindSafe for Props<S>
impl<S> !Send for Props<S>
impl<S> !Sync for Props<S>
impl<S> Unpin for Props<S>
impl<S> !UnwindSafe for Props<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.