pub enum GpuImageBorder {
Replicate,
ConstantZero,
}Expand description
Border extrapolation for GPU image filters.
Variants§
Replicate
Clamp coordinates to the nearest valid edge pixel (replicate).
ConstantZero
Treat out-of-bounds samples as zero.
Trait Implementations§
Source§impl Clone for GpuImageBorder
impl Clone for GpuImageBorder
Source§fn clone(&self) -> GpuImageBorder
fn clone(&self) -> GpuImageBorder
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 moreSource§impl Debug for GpuImageBorder
impl Debug for GpuImageBorder
Source§impl PartialEq for GpuImageBorder
impl PartialEq for GpuImageBorder
Source§fn eq(&self, other: &GpuImageBorder) -> bool
fn eq(&self, other: &GpuImageBorder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GpuImageBorder
impl Eq for GpuImageBorder
impl StructuralPartialEq for GpuImageBorder
Auto Trait Implementations§
impl Freeze for GpuImageBorder
impl RefUnwindSafe for GpuImageBorder
impl Send for GpuImageBorder
impl Sync for GpuImageBorder
impl Unpin for GpuImageBorder
impl UnsafeUnpin for GpuImageBorder
impl UnwindSafe for GpuImageBorder
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more