pub enum ScalePreference {
Auto,
Multiplier(f32),
}Variants§
Implementations§
Source§impl ScalePreference
impl ScalePreference
pub fn multiplier(self) -> Option<f32>
Trait Implementations§
Source§impl Clone for ScalePreference
impl Clone for ScalePreference
Source§fn clone(&self) -> ScalePreference
fn clone(&self) -> ScalePreference
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 moreimpl Copy for ScalePreference
Source§impl Debug for ScalePreference
impl Debug for ScalePreference
Source§impl Default for ScalePreference
impl Default for ScalePreference
Source§fn default() -> ScalePreference
fn default() -> ScalePreference
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScalePreference
impl PartialEq for ScalePreference
impl StructuralPartialEq for ScalePreference
Auto Trait Implementations§
impl Freeze for ScalePreference
impl RefUnwindSafe for ScalePreference
impl Send for ScalePreference
impl Sync for ScalePreference
impl Unpin for ScalePreference
impl UnsafeUnpin for ScalePreference
impl UnwindSafe for ScalePreference
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