plotters::coord::cartesian

Enum MeshLine

Source
pub enum MeshLine<'a, X: Ranged, Y: Ranged> {
    XMesh(BackendCoord, BackendCoord, &'a X::ValueType),
    YMesh(BackendCoord, BackendCoord, &'a Y::ValueType),
}
Expand description

Represent a coordinate mesh for the two ranged value coordinate system

Variants§

§

XMesh(BackendCoord, BackendCoord, &'a X::ValueType)

Used to plot the horizontal lines of the mesh

§

YMesh(BackendCoord, BackendCoord, &'a Y::ValueType)

Used to plot the vertical lines of the mesh

Implementations§

Source§

impl<'a, X: Ranged, Y: Ranged> MeshLine<'a, X, Y>

Source

pub fn draw<DB: DrawingBackend>( &self, backend: &mut DB, style: &ShapeStyle, ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

Draw a single mesh line onto the backend

Auto Trait Implementations§

§

impl<'a, X, Y> Freeze for MeshLine<'a, X, Y>

§

impl<'a, X, Y> RefUnwindSafe for MeshLine<'a, X, Y>

§

impl<'a, X, Y> Send for MeshLine<'a, X, Y>
where <X as Ranged>::ValueType: Sync, <Y as Ranged>::ValueType: Sync,

§

impl<'a, X, Y> Sync for MeshLine<'a, X, Y>
where <X as Ranged>::ValueType: Sync, <Y as Ranged>::ValueType: Sync,

§

impl<'a, X, Y> Unpin for MeshLine<'a, X, Y>

§

impl<'a, X, Y> UnwindSafe for MeshLine<'a, X, Y>

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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes

Size for each variant:

  • XMesh: 28 bytes
  • YMesh: 28 bytes