pub struct Filter(pub u64);Expand description
Sampling filter.
Tuple Fields§
§0: u64Implementations§
Source§impl Filter
impl Filter
Sourcepub fn into_owned(self) -> Filter
pub fn into_owned(self) -> Filter
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Source§impl Filter
impl Filter
pub const NEAREST: Self
pub const LINEAR: Self
pub const NEAREST_MIPMAP_NEAREST: Self
pub const LINEAR_MIPMAP_NEAREST: Self
pub const NEAREST_MIPMAP_LINEAR: Self
pub const LINEAR_MIPMAP_LINEAR: Self
pub fn to_enum(self) -> Option<FilterEnum>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Filter
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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