pub struct EventType(/* private fields */);Expand description
An event type. An arbitrary opaque, non-empty string (the spec never parses it),
stored as an exact-sized Box<str>.
There is deliberately no Deref<Target = str>: reaching through a newtype makes
method resolution ambiguous (ty.len() would silently mean the string length).
Use as_str, AsRef<str>, or Display.
Implementations§
Trait Implementations§
impl Eq for EventType
Source§impl Ord for EventType
impl Ord for EventType
1.21.0 (const: unstable) · 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 PartialOrd for EventType
impl PartialOrd for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnsafeUnpin for EventType
impl UnwindSafe for EventType
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