pub enum ExtendMode {
Clamp,
Repeat,
}
Expand description
Whether a gradient
should be repeated or clamped to the edges.
Variants§
Trait Implementations§
Source§impl Clone for ExtendMode
impl Clone for ExtendMode
Source§fn clone(&self) -> ExtendMode
fn clone(&self) -> ExtendMode
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 ExtendMode
impl Debug for ExtendMode
Source§impl Hash for ExtendMode
impl Hash for ExtendMode
Source§impl Ord for ExtendMode
impl Ord for ExtendMode
Source§fn cmp(&self, other: &ExtendMode) -> Ordering
fn cmp(&self, other: &ExtendMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExtendMode
impl PartialEq for ExtendMode
Source§impl PartialOrd for ExtendMode
impl PartialOrd for ExtendMode
impl Copy for ExtendMode
impl Eq for ExtendMode
impl StructuralPartialEq for ExtendMode
Auto Trait Implementations§
impl Freeze for ExtendMode
impl RefUnwindSafe for ExtendMode
impl Send for ExtendMode
impl Sync for ExtendMode
impl Unpin for ExtendMode
impl UnwindSafe for ExtendMode
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
)