Enum wineventhook::MaybeKnown
source · pub enum MaybeKnown<T> {
Known(T),
Unknown(i32),
}
Expand description
A struct represting an event in a reserved range that may be a known common event or an unknown new or custom event.
Variants§
Implementations§
source§impl<T> MaybeKnown<T>
impl<T> MaybeKnown<T>
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true
if the event is unknown.
Trait Implementations§
source§impl<T: Clone> Clone for MaybeKnown<T>
impl<T: Clone> Clone for MaybeKnown<T>
source§fn clone(&self) -> MaybeKnown<T>
fn clone(&self) -> MaybeKnown<T>
Returns a copy 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<T: Debug> Debug for MaybeKnown<T>
impl<T: Debug> Debug for MaybeKnown<T>
source§impl<T> From<MaybeKnown<T>> for i32
impl<T> From<MaybeKnown<T>> for i32
source§fn from(value: MaybeKnown<T>) -> Self
fn from(value: MaybeKnown<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<i32> for MaybeKnown<T>
impl<T> From<i32> for MaybeKnown<T>
source§impl<T: Hash> Hash for MaybeKnown<T>
impl<T: Hash> Hash for MaybeKnown<T>
source§impl<T: Ord> Ord for MaybeKnown<T>
impl<T: Ord> Ord for MaybeKnown<T>
source§fn cmp(&self, other: &MaybeKnown<T>) -> Ordering
fn cmp(&self, other: &MaybeKnown<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<T> for MaybeKnown<T>where
T: PartialEq,
impl<T> PartialEq<T> for MaybeKnown<T>where
T: PartialEq,
source§impl<T: PartialEq> PartialEq for MaybeKnown<T>
impl<T: PartialEq> PartialEq for MaybeKnown<T>
source§fn eq(&self, other: &MaybeKnown<T>) -> bool
fn eq(&self, other: &MaybeKnown<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd for MaybeKnown<T>
impl<T: PartialOrd> PartialOrd for MaybeKnown<T>
source§fn partial_cmp(&self, other: &MaybeKnown<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &MaybeKnown<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for MaybeKnown<T>
impl<T: Eq> Eq for MaybeKnown<T>
impl<T> StructuralPartialEq for MaybeKnown<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for MaybeKnown<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeKnown<T>where
T: Send,
impl<T> Sync for MaybeKnown<T>where
T: Sync,
impl<T> Unpin for MaybeKnown<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeKnown<T>where
T: UnwindSafe,
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