Enum hex_renderer::PatternVariant
source · pub enum PatternVariant {
Normal(Pattern),
Monocolor(Pattern),
}
Expand description
Wrapper around Pattern to specify special cases
Variants§
Normal(Pattern)
Draws the pattern normally
Monocolor(Pattern)
Draws the color as monocolor without bends For Segment and Gradient renderers, it simply draws it in the starting color. For monocolor, it takes out the bends (if applicable)
Implementations§
Trait Implementations§
source§impl Clone for PatternVariant
impl Clone for PatternVariant
source§fn clone(&self) -> PatternVariant
fn clone(&self) -> PatternVariant
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 moresource§impl Debug for PatternVariant
impl Debug for PatternVariant
source§impl PartialEq for PatternVariant
impl PartialEq for PatternVariant
source§impl PartialOrd for PatternVariant
impl PartialOrd for PatternVariant
impl StructuralPartialEq for PatternVariant
Auto Trait Implementations§
impl Freeze for PatternVariant
impl RefUnwindSafe for PatternVariant
impl Send for PatternVariant
impl Sync for PatternVariant
impl Unpin for PatternVariant
impl UnwindSafe for PatternVariant
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
)