Enum pdf_writer::types::ShadingType
source · [−]#[non_exhaustive]
pub enum ShadingType {
Function,
Axial,
Radial,
}
Expand description
What kind of shading to use.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Function
The function specifies the color for each point in the domain.
Axial
The function specifies the color for each point on a line.
Radial
The function specifies the color for each circle between two nested circles.
Trait Implementations
sourceimpl Clone for ShadingType
impl Clone for ShadingType
sourcefn clone(&self) -> ShadingType
fn clone(&self) -> ShadingType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShadingType
impl Debug for ShadingType
sourceimpl Hash for ShadingType
impl Hash for ShadingType
sourceimpl PartialEq<ShadingType> for ShadingType
impl PartialEq<ShadingType> for ShadingType
impl Copy for ShadingType
impl Eq for ShadingType
impl StructuralEq for ShadingType
impl StructuralPartialEq for ShadingType
Auto Trait Implementations
impl RefUnwindSafe for ShadingType
impl Send for ShadingType
impl Sync for ShadingType
impl Unpin for ShadingType
impl UnwindSafe for ShadingType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more