pub enum GradientWrap {
Clamp,
Repeat,
PingPong,
}Expand description
Wrap mode for positions outside 0..1.
Variants§
Clamp
Clamp to 0..1 (default).
Repeat
Repeat the gradient (modular).
PingPong
Mirror back and forth.
Trait Implementations§
Source§impl Clone for GradientWrap
impl Clone for GradientWrap
Source§fn clone(&self) -> GradientWrap
fn clone(&self) -> GradientWrap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GradientWrap
Auto Trait Implementations§
impl Freeze for GradientWrap
impl RefUnwindSafe for GradientWrap
impl Send for GradientWrap
impl Sync for GradientWrap
impl Unpin for GradientWrap
impl UnsafeUnpin for GradientWrap
impl UnwindSafe for GradientWrap
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