pub enum WrapMode {
Tile,
Mirror,
Clamp,
Border,
}
Expand description
Specifies how image coordinates outside the range [0, 1]
are handled.
Variants§
Tile
Tile the image, that is, sample the coordinate modulo 1.0
, so
addressing the image beyond an edge will “wrap” back from the
other edge.
Mirror
Mirror the image. Like tile, but uses abs(coord) before the modulo.
Clamp
Clamp the image to the value at 0.0
or 1.0
respectively.
Border
Use border color.
Trait Implementations§
Source§impl Ord for WrapMode
impl Ord for WrapMode
Source§impl PartialOrd for WrapMode
impl PartialOrd for WrapMode
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnwindSafe for WrapMode
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
)