Struct X

Source
pub struct X<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> X<'a>

Source

pub fn show(&mut self, show: bool) -> &mut Self

Determines whether or not slice planes about the x dimension are drawn.

default: false

Source

pub fn locations(&mut self, locations: &'a [f64]) -> &mut Self

Specifies the location(s) of slices on the axis. When not specified slices would be created for all points of the axis x except start and end.

default: []

Source

pub fn fill(&mut self, fill: f64) -> &mut Self

Sets the fill ratio of the slices. The default fill value of the slices is 1 meaning that they are entirely shaded. On the other hand Applying a fill ratio less than one would allow the creation of openings parallel to the edges.

default: 1

Trait Implementations§

Source§

impl<'a> Default for X<'a>

Source§

fn default() -> X<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for X<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for X<'a>

§

impl<'a> RefUnwindSafe for X<'a>

§

impl<'a> Send for X<'a>

§

impl<'a> Sync for X<'a>

§

impl<'a> Unpin for X<'a>

§

impl<'a> UnwindSafe for X<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.