pub struct Device {
pub name: &'static str,
pub kind: DeviceKind,
pub os: DeviceOs,
pub width: f32,
pub height: f32,
pub radius: f32,
pub top: f32,
pub bottom: f32,
pub cutout: Cutout,
}Expand description
Um aparelho de referência.
Fields§
§name: &'static str§kind: DeviceKind§os: DeviceOs§width: f32A tela em pé, em pontos.
height: f32§radius: f32O raio dos cantos da tela.
top: f32A barra de status (com o recorte) e a barra de gestos, em pé.
bottom: f32§cutout: CutoutImplementations§
Trait Implementations§
impl Copy for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Forget for Device
impl Freeze for Device
impl Move for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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