pub struct ScalingOptions {
pub resampling_function: ResamplingFunction,
pub premultiply_alpha: bool,
pub threading_policy: ThreadingPolicy,
}Expand description
Declares default scaling options
Fields§
§resampling_function: ResamplingFunction§premultiply_alpha: bool§threading_policy: ThreadingPolicyTrait Implementations§
Source§impl Clone for ScalingOptions
impl Clone for ScalingOptions
Source§fn clone(&self) -> ScalingOptions
fn clone(&self) -> ScalingOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalingOptions
impl Debug for ScalingOptions
Source§impl Default for ScalingOptions
impl Default for ScalingOptions
Source§fn default() -> ScalingOptions
fn default() -> ScalingOptions
Returns the “default value” for a type. Read more
Source§impl Ord for ScalingOptions
impl Ord for ScalingOptions
Source§fn cmp(&self, other: &ScalingOptions) -> Ordering
fn cmp(&self, other: &ScalingOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScalingOptions
impl PartialEq for ScalingOptions
Source§impl PartialOrd for ScalingOptions
impl PartialOrd for ScalingOptions
impl Copy for ScalingOptions
impl Eq for ScalingOptions
impl StructuralPartialEq for ScalingOptions
Auto Trait Implementations§
impl Freeze for ScalingOptions
impl RefUnwindSafe for ScalingOptions
impl Send for ScalingOptions
impl Sync for ScalingOptions
impl Unpin for ScalingOptions
impl UnwindSafe for ScalingOptions
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more