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>
impl<'a, X: Ranged, Y: Ranged> MeshLine<'a, X, Y>
Sourcepub fn draw<DB: DrawingBackend>(
&self,
backend: &mut DB,
style: &ShapeStyle,
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
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>
impl<'a, X, Y> Sync for MeshLine<'a, X, Y>
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> 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
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 bytesYMesh
: 28 bytes