#[non_exhaustive]pub enum SegmentStyle {
Input,
Converted,
Target,
TargetInput,
}Expand description
How a stretch of a composition is drawn: TSF’s display attributes, the underlines of macOS marked text, Android’s composing spans.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Input
Text being typed, not converted yet.
Converted
A converted clause.
Target
The converted clause the input method is working on.
TargetInput
The unconverted clause the input method is working on.
Trait Implementations§
Source§impl Clone for SegmentStyle
impl Clone for SegmentStyle
impl Copy for SegmentStyle
Source§impl Debug for SegmentStyle
impl Debug for SegmentStyle
impl Eq for SegmentStyle
Source§impl PartialEq for SegmentStyle
impl PartialEq for SegmentStyle
impl StructuralPartialEq for SegmentStyle
Auto Trait Implementations§
impl Freeze for SegmentStyle
impl RefUnwindSafe for SegmentStyle
impl Send for SegmentStyle
impl Sync for SegmentStyle
impl Unpin for SegmentStyle
impl UnsafeUnpin for SegmentStyle
impl UnwindSafe for SegmentStyle
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