#[non_exhaustive]pub struct Composition {
pub composing: bool,
pub text: String,
}Expand description
An input method’s composition in an input (on_composition_change):
the text being composed (pinyin before a character is chosen, kana
before conversion), not yet the input’s text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.composing: boolA composition is in progress.
text: StringThe text being composed, empty once the composition ends.
Trait Implementations§
Source§impl Clone for Composition
impl Clone for Composition
Source§impl Debug for Composition
impl Debug for Composition
Source§impl Default for Composition
impl Default for Composition
impl Eq for Composition
Source§impl PartialEq for Composition
impl PartialEq for Composition
impl StructuralPartialEq for Composition
Auto Trait Implementations§
impl Forget for Composition
impl Freeze for Composition
impl Move for Composition
impl RefUnwindSafe for Composition
impl Send for Compositionwhere
RawVecInner: Send,
impl Sync for Compositionwhere
RawVecInner: Sync,
impl Unpin for Composition
impl UnsafeUnpin for Composition
impl UnwindSafe for Compositionwhere
RawVecInner: 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