pub enum ShadingType {
FunctionBased = 1,
Axial = 2,
Radial = 3,
FreeFormGouraud = 4,
LatticeFormGouraud = 5,
CoonsPatch = 6,
TensorProductPatch = 7,
}Expand description
Shading type enumeration according to ISO 32000-1
Variants§
FunctionBased = 1
Function-based shading (Type 1)
Axial = 2
Axial shading (Type 2) - linear gradient
Radial = 3
Radial shading (Type 3) - radial gradient
FreeFormGouraud = 4
Free-form Gouraud-shaded triangle mesh (Type 4)
LatticeFormGouraud = 5
Lattice-form Gouraud-shaded triangle mesh (Type 5)
CoonsPatch = 6
Coons patch mesh (Type 6)
TensorProductPatch = 7
Tensor-product patch mesh (Type 7)
Trait Implementations§
Source§impl Clone for ShadingType
impl Clone for ShadingType
Source§fn clone(&self) -> ShadingType
fn clone(&self) -> ShadingType
Returns a duplicate 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 moreSource§impl Debug for ShadingType
impl Debug for ShadingType
Source§impl PartialEq for ShadingType
impl PartialEq for ShadingType
impl Copy for ShadingType
impl StructuralPartialEq for ShadingType
Auto Trait Implementations§
impl Freeze for ShadingType
impl RefUnwindSafe for ShadingType
impl Send for ShadingType
impl Sync for ShadingType
impl Unpin for ShadingType
impl UnwindSafe for ShadingType
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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