pub struct TargetDimensions {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
}Expand description
Dimensions of a render target including device pixel ratio scale factor.
Fields§
§width: u32§height: u32§scale_factor: f64Implementations§
Trait Implementations§
Source§impl Clone for TargetDimensions
impl Clone for TargetDimensions
impl Copy for TargetDimensions
Source§impl Debug for TargetDimensions
impl Debug for TargetDimensions
Source§impl PartialEq for TargetDimensions
impl PartialEq for TargetDimensions
impl StructuralPartialEq for TargetDimensions
Auto Trait Implementations§
impl Forget for TargetDimensions
impl Freeze for TargetDimensions
impl Move for TargetDimensions
impl RefUnwindSafe for TargetDimensions
impl Send for TargetDimensions
impl Sync for TargetDimensions
impl Unpin for TargetDimensions
impl UnsafeUnpin for TargetDimensions
impl UnwindSafe for TargetDimensions
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