[−][src]Enum duku::Wrap
Wrapping mode for texture sampling.
Defines what should be returned when sampling outside of the texture's UV range
Example
ⓘThis example is not tested
duku.draw_on_window(None, |target| { target.texture_filter = Wrap::Repeat; });
Variants
samples black outside of texture
samples edge pixels outside of texture
repeats the texture
Trait Implementations
impl Clone for Wrap
[src]
impl Copy for Wrap
[src]
impl Debug for Wrap
[src]
impl Eq for Wrap
[src]
impl PartialEq<Wrap> for Wrap
[src]
pub fn eq(&self, other: &Wrap) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Wrap
[src]
impl StructuralPartialEq for Wrap
[src]
Auto Trait Implementations
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnwindSafe for Wrap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,