Enum sdl2::event::DisplayEvent
source · [−]pub enum DisplayEvent {
None,
Orientation(Orientation),
Connected,
Disconnected,
}
Expand description
An enum of display events.
Variants
None
Orientation(Orientation)
Connected
Disconnected
Implementations
sourceimpl DisplayEvent
impl DisplayEvent
pub fn is_same_kind_as(&self, other: &DisplayEvent) -> bool
Trait Implementations
sourceimpl Clone for DisplayEvent
impl Clone for DisplayEvent
sourcefn clone(&self) -> DisplayEvent
fn clone(&self) -> DisplayEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DisplayEvent
impl Debug for DisplayEvent
sourceimpl Hash for DisplayEvent
impl Hash for DisplayEvent
sourceimpl PartialEq<DisplayEvent> for DisplayEvent
impl PartialEq<DisplayEvent> for DisplayEvent
sourcefn eq(&self, other: &DisplayEvent) -> bool
fn eq(&self, other: &DisplayEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DisplayEvent) -> bool
fn ne(&self, other: &DisplayEvent) -> bool
This method tests for !=
.
impl Copy for DisplayEvent
impl Eq for DisplayEvent
impl StructuralEq for DisplayEvent
impl StructuralPartialEq for DisplayEvent
Auto Trait Implementations
impl RefUnwindSafe for DisplayEvent
impl Send for DisplayEvent
impl Sync for DisplayEvent
impl Unpin for DisplayEvent
impl UnwindSafe for DisplayEvent
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