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> RefUnwindSafe for MeshLine<'a, X, Y>where <X as Ranged>::ValueType: RefUnwindSafe, <Y as Ranged>::ValueType: RefUnwindSafe,
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>where <X as Ranged>::ValueType: RefUnwindSafe, <Y as Ranged>::ValueType: RefUnwindSafe,
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