Enum tiny_skia::SpreadMode
source · [−]pub enum SpreadMode {
Pad,
Reflect,
Repeat,
}
Expand description
A shader spreading mode.
Variants
Pad
Replicate the edge color if the shader draws outside of its original bounds.
Reflect
Repeat the shader’s image horizontally and vertically, alternating mirror images so that adjacent images always seam.
Repeat
Repeat the shader’s image horizontally and vertically.
Trait Implementations
sourceimpl Clone for SpreadMode
impl Clone for SpreadMode
sourcefn clone(&self) -> SpreadMode
fn clone(&self) -> SpreadMode
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 SpreadMode
impl Debug for SpreadMode
sourceimpl Default for SpreadMode
impl Default for SpreadMode
sourceimpl PartialEq<SpreadMode> for SpreadMode
impl PartialEq<SpreadMode> for SpreadMode
impl Copy for SpreadMode
impl StructuralPartialEq for SpreadMode
Auto Trait Implementations
impl RefUnwindSafe for SpreadMode
impl Send for SpreadMode
impl Sync for SpreadMode
impl Unpin for SpreadMode
impl UnwindSafe for SpreadMode
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