pub struct ScreenDensity {
pub density_alias: Option<String>,
pub density_dpi: Option<i32>,
}Expand description
Represents a screen density.
This type is not used in any activity, and only used as part of another schema.
Fields§
§density_alias: Option<String>Alias for a screen density.
density_dpi: Option<i32>Value for density dpi.
Trait Implementations§
Source§impl Clone for ScreenDensity
impl Clone for ScreenDensity
Source§fn clone(&self) -> ScreenDensity
fn clone(&self) -> ScreenDensity
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 ScreenDensity
impl Debug for ScreenDensity
Source§impl Default for ScreenDensity
impl Default for ScreenDensity
Source§fn default() -> ScreenDensity
fn default() -> ScreenDensity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScreenDensity
impl<'de> Deserialize<'de> for ScreenDensity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ScreenDensity
impl Serialize for ScreenDensity
impl Part for ScreenDensity
Auto Trait Implementations§
impl Freeze for ScreenDensity
impl RefUnwindSafe for ScreenDensity
impl Send for ScreenDensity
impl Sync for ScreenDensity
impl Unpin for ScreenDensity
impl UnwindSafe for ScreenDensity
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