#[repr(C)]pub struct LogicalSize {
pub width: f32,
pub height: f32,
}Fields§
§width: f32§height: f32Implementations§
Source§impl LogicalSize
impl LogicalSize
pub fn scale_for_dpi(&mut self, scale_factor: f32) -> Self
Source§impl LogicalSize
impl LogicalSize
Trait Implementations§
Source§impl Clone for LogicalSize
impl Clone for LogicalSize
Source§fn clone(&self) -> LogicalSize
fn clone(&self) -> LogicalSize
Returns a duplicate 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 LogicalSize
impl Debug for LogicalSize
Source§impl Default for LogicalSize
impl Default for LogicalSize
Source§fn default() -> LogicalSize
fn default() -> LogicalSize
Returns the “default value” for a type. Read more
Source§impl Display for LogicalSize
impl Display for LogicalSize
Source§impl Hash for LogicalSize
impl Hash for LogicalSize
Source§impl Ord for LogicalSize
impl Ord for LogicalSize
Source§fn cmp(&self, other: &LogicalSize) -> Ordering
fn cmp(&self, other: &LogicalSize) -> 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 LogicalSize
impl PartialEq for LogicalSize
Source§impl PartialOrd for LogicalSize
impl PartialOrd for LogicalSize
impl Copy for LogicalSize
impl Eq for LogicalSize
impl StructuralPartialEq for LogicalSize
Auto Trait Implementations§
impl Freeze for LogicalSize
impl RefUnwindSafe for LogicalSize
impl Send for LogicalSize
impl Sync for LogicalSize
impl Unpin for LogicalSize
impl UnwindSafe for LogicalSize
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