pub struct Display<'a> { /* private fields */ }
Expand description
A struct that represents a display (index)
Implementations
sourceimpl Display<'_>
impl Display<'_>
pub fn index(&self) -> usize
pub fn name(&self) -> &str
pub fn string(&self) -> &str
pub fn key(&self) -> &str
pub fn settings(&self) -> &Option<RefCell<DisplaySettings>>
pub fn is_primary(&self) -> bool
pub fn set_primary(&self) -> Result<(), DisplayError>
pub fn apply(&self) -> Result<(), DisplayError>
Trait Implementations
impl<'a> Eq for Display<'a>
impl<'a> StructuralEq for Display<'a>
impl<'a> StructuralPartialEq for Display<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Display<'a>
impl<'a> !Send for Display<'a>
impl<'a> !Sync for Display<'a>
impl<'a> Unpin for Display<'a>
impl<'a> !UnwindSafe for Display<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more