Enum rasterize::GradSpread
source · pub enum GradSpread {
Pad,
Repeat,
Reflect,
}
Expand description
Gradient spread logic for the parameter smaller than 0 and greater than 1
Variants§
Pad
Use the same colors as the edge of the gradient
Repeat
Repeat gradient
Reflect
Repeat gradient but alternate reflected and non reflected versions
Implementations§
Trait Implementations§
source§impl Clone for GradSpread
impl Clone for GradSpread
source§fn clone(&self) -> GradSpread
fn clone(&self) -> GradSpread
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 GradSpread
impl Debug for GradSpread
source§impl Default for GradSpread
impl Default for GradSpread
source§impl<'de> Deserialize<'de> for GradSpread
impl<'de> Deserialize<'de> for GradSpread
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GradSpread
impl Hash for GradSpread
source§impl PartialEq for GradSpread
impl PartialEq for GradSpread
source§fn eq(&self, other: &GradSpread) -> bool
fn eq(&self, other: &GradSpread) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GradSpread
impl Serialize for GradSpread
impl Copy for GradSpread
impl Eq for GradSpread
impl StructuralPartialEq for GradSpread
Auto Trait Implementations§
impl Freeze for GradSpread
impl RefUnwindSafe for GradSpread
impl Send for GradSpread
impl Sync for GradSpread
impl Unpin for GradSpread
impl UnwindSafe for GradSpread
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.