pub enum CompositionState {
Start,
Update,
End,
}
Expand description
Describes the state of a composition session.
Variants§
Start
The compositionstart event.
See also the MDN documentation.
Update
The compositionupdate event.
See also the MDN documentation.
End
The compositionend event.
In a text editor, in this state the data should be added to the input.
See also the MDN documentation.
Implementations§
Source§impl CompositionState
impl CompositionState
Sourcepub const fn event_type(self) -> &'static str
pub const fn event_type(self) -> &'static str
The type name of the corresponding composition event.
This is either "compositionstart"
, "compositionupdate"
or "compositionend"
.
Trait Implementations§
Source§impl Clone for CompositionState
impl Clone for CompositionState
Source§fn clone(&self) -> CompositionState
fn clone(&self) -> CompositionState
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 CompositionState
impl Debug for CompositionState
Source§impl<'de> Deserialize<'de> for CompositionState
impl<'de> Deserialize<'de> for CompositionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CompositionState
impl Hash for CompositionState
Source§impl Ord for CompositionState
impl Ord for CompositionState
Source§fn cmp(&self, other: &CompositionState) -> Ordering
fn cmp(&self, other: &CompositionState) -> 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 PartialEq for CompositionState
impl PartialEq for CompositionState
Source§impl PartialOrd for CompositionState
impl PartialOrd for CompositionState
Source§impl Serialize for CompositionState
impl Serialize for CompositionState
impl Copy for CompositionState
impl Eq for CompositionState
impl StructuralPartialEq for CompositionState
Auto Trait Implementations§
impl Freeze for CompositionState
impl RefUnwindSafe for CompositionState
impl Send for CompositionState
impl Sync for CompositionState
impl Unpin for CompositionState
impl UnwindSafe for CompositionState
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