pub enum RenderMode {
Solid,
Outline,
BasicDashed(Vec<f32>),
DashedRepeatingN(Vec<f32>, f32),
DashedPerfect(Vec<f32>),
}
Variants§
Solid
The shape is filled in and completely solid.
Outline
The shape is traced with an outline.
BasicDashed(Vec<f32>)
The shape is traced with a dashed outline.
The dash-segment length and gap length are pulled from the vector in an alternating pattern.
[1.0, 2.0, 3.0, 4.0, 5.0, 6.0] would produce the line
1 2 3 4 5 6 1 2 3 4 5 6
DashedRepeatingN(Vec<f32>, f32)
The shape is traced with a dashed outline.
The dash-segment length and gap length are stretched to repeat exactly N times.
DashedPerfect(Vec<f32>)
The shape is traced with a dashed outline that wraps around to end exactly where it began.
The dash-segment length and gap length are stretched the smallest amount to make the ends meet.
Trait Implementations§
Source§impl Clone for RenderMode
impl Clone for RenderMode
Source§fn clone(&self) -> RenderMode
fn clone(&self) -> RenderMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RenderMode
impl RefUnwindSafe for RenderMode
impl Send for RenderMode
impl Sync for RenderMode
impl Unpin for RenderMode
impl UnwindSafe for RenderMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more