pub struct ScreenProfile {
pub w: u32,
pub h: u32,
pub bit_depth: u8,
pub palette: String,
pub rotation: u16,
}Expand description
A device’s panel geometry echoed in the display manifest + config screen
object. Computed by the feed impl from the device class + prefs (so the panel
constants live with the renderer, not here), and carried back as plain data.
Fields§
§w: u32§h: u32§bit_depth: u8§palette: StringWire palette string ("mono" / "rgba" / "rgb565").
rotation: u16Trait Implementations§
Source§impl Clone for ScreenProfile
impl Clone for ScreenProfile
Source§fn clone(&self) -> ScreenProfile
fn clone(&self) -> ScreenProfile
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 moreAuto Trait Implementations§
impl Freeze for ScreenProfile
impl RefUnwindSafe for ScreenProfile
impl Send for ScreenProfile
impl Sync for ScreenProfile
impl Unpin for ScreenProfile
impl UnsafeUnpin for ScreenProfile
impl UnwindSafe for ScreenProfile
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