pub struct FieldState {
pub field: u64,
pub text: String,
pub cursor: usize,
pub anchor: usize,
pub caret: Rect,
}Expand description
The focused text field, as an input method needs it.
Fields§
§field: u64Which field it is: another number when the focus moves to another.
text: StringThe field’s text.
cursor: usizeThe caret, in bytes.
anchor: usizeThe other end of the selection, or the caret without one.
caret: RectWhere the caret is drawn, in window coordinates.
Trait Implementations§
Source§impl Clone for FieldState
impl Clone for FieldState
Source§impl Debug for FieldState
impl Debug for FieldState
Source§impl PartialEq for FieldState
impl PartialEq for FieldState
impl StructuralPartialEq for FieldState
Auto Trait Implementations§
impl Forget for FieldState
impl Freeze for FieldState
impl Move for FieldState
impl RefUnwindSafe for FieldState
impl Send for FieldState
impl Sync for FieldState
impl Unpin for FieldState
impl UnsafeUnpin for FieldState
impl UnwindSafe for FieldState
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