pub struct ScreenConfig {
pub width: Option<u32>,
pub height: Option<u32>,
pub fullscreen: bool,
}Fields§
§width: Option<u32>§height: Option<u32>§fullscreen: boolLaunch in fullscreen mode (default: false).
Trait Implementations§
Source§impl Clone for ScreenConfig
impl Clone for ScreenConfig
Source§fn clone(&self) -> ScreenConfig
fn clone(&self) -> ScreenConfig
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 moreSource§impl Debug for ScreenConfig
impl Debug for ScreenConfig
Source§impl Default for ScreenConfig
impl Default for ScreenConfig
Source§fn default() -> ScreenConfig
fn default() -> ScreenConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScreenConfig
impl<'de> Deserialize<'de> for ScreenConfig
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
Auto Trait Implementations§
impl Freeze for ScreenConfig
impl RefUnwindSafe for ScreenConfig
impl Send for ScreenConfig
impl Sync for ScreenConfig
impl Unpin for ScreenConfig
impl UnsafeUnpin for ScreenConfig
impl UnwindSafe for ScreenConfig
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