Struct skia_safe::sampling_options::SamplingOptions
source · #[repr(C)]pub struct SamplingOptions {
pub max_aniso: i32,
pub use_cubic: bool,
pub cubic: CubicResampler,
pub filter: FilterMode,
pub mipmap: MipmapMode,
}
Fields§
§max_aniso: i32
§use_cubic: bool
§cubic: CubicResampler
§filter: FilterMode
§mipmap: MipmapMode
Implementations§
source§impl SamplingOptions
impl SamplingOptions
pub fn new(filter_mode: FilterMode, mm: MipmapMode) -> Self
Trait Implementations§
source§impl Clone for SamplingOptions
impl Clone for SamplingOptions
source§fn clone(&self) -> SamplingOptions
fn clone(&self) -> SamplingOptions
Returns a copy of the value. Read more
1.0.0 · 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 SamplingOptions
impl Debug for SamplingOptions
source§impl Default for SamplingOptions
impl Default for SamplingOptions
source§impl From<CubicResampler> for SamplingOptions
impl From<CubicResampler> for SamplingOptions
source§fn from(cubic: CubicResampler) -> Self
fn from(cubic: CubicResampler) -> Self
Converts to this type from the input type.
source§impl From<FilterOptions> for SamplingOptions
impl From<FilterOptions> for SamplingOptions
source§fn from(filter: FilterOptions) -> Self
fn from(filter: FilterOptions) -> Self
Converts to this type from the input type.
source§impl From<SkFilterMode> for SamplingOptions
impl From<SkFilterMode> for SamplingOptions
source§fn from(fm: FilterMode) -> Self
fn from(fm: FilterMode) -> Self
Converts to this type from the input type.
source§impl PartialEq<SamplingOptions> for SamplingOptions
impl PartialEq<SamplingOptions> for SamplingOptions
source§fn eq(&self, other: &SamplingOptions) -> bool
fn eq(&self, other: &SamplingOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SamplingOptions
impl StructuralPartialEq for SamplingOptions
Auto Trait Implementations§
impl RefUnwindSafe for SamplingOptions
impl Send for SamplingOptions
impl Sync for SamplingOptions
impl Unpin for SamplingOptions
impl UnwindSafe for SamplingOptions
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