pub struct Preedit<T = String> {
pub content: T,
pub selection: Option<Range<usize>>,
pub text_size: Option<Pixels>,
}
Expand description
The pre-edit of an InputMethod
.
Fields§
§content: T
The current content.
selection: Option<Range<usize>>
The selected range of the content.
text_size: Option<Pixels>
The text size of the content.
Implementations§
Trait Implementations§
impl<T> StructuralPartialEq for Preedit<T>
Auto Trait Implementations§
impl<T> Freeze for Preedit<T>where
T: Freeze,
impl<T> RefUnwindSafe for Preedit<T>where
T: RefUnwindSafe,
impl<T> Send for Preedit<T>where
T: Send,
impl<T> Sync for Preedit<T>where
T: Sync,
impl<T> Unpin for Preedit<T>where
T: Unpin,
impl<T> UnwindSafe for Preedit<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.