#[non_exhaustive]pub struct DisplayDevice {
pub enable_display: Option<bool>,
/* private fields */
}Available on crate feature
instances only.Expand description
A set of Display Device options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_display: Option<bool>Defines whether the instance has Display enabled.
Implementations§
Source§impl DisplayDevice
impl DisplayDevice
pub fn new() -> Self
Sourcepub fn set_enable_display<T>(self, v: T) -> Self
pub fn set_enable_display<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enable_display<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_display<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_display.
§Example
ⓘ
let x = DisplayDevice::new().set_or_clear_enable_display(Some(false));
let x = DisplayDevice::new().set_or_clear_enable_display(None::<bool>);Trait Implementations§
Source§impl Clone for DisplayDevice
impl Clone for DisplayDevice
Source§fn clone(&self) -> DisplayDevice
fn clone(&self) -> DisplayDevice
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 DisplayDevice
impl Debug for DisplayDevice
Source§impl Default for DisplayDevice
impl Default for DisplayDevice
Source§fn default() -> DisplayDevice
fn default() -> DisplayDevice
Returns the “default value” for a type. Read more
Source§impl Message for DisplayDevice
impl Message for DisplayDevice
Source§impl PartialEq for DisplayDevice
impl PartialEq for DisplayDevice
impl StructuralPartialEq for DisplayDevice
Auto Trait Implementations§
impl Freeze for DisplayDevice
impl RefUnwindSafe for DisplayDevice
impl Send for DisplayDevice
impl Sync for DisplayDevice
impl Unpin for DisplayDevice
impl UnwindSafe for DisplayDevice
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