pub struct EditingStateBytes {
pub text: String,
pub base: usize,
pub extent: usize,
pub composing: Option<Range<usize>>,
}Expand description
The editing value in byte offsets — the parley-native representation and
the shape EditOp::ApplyEditingState consumes.
Fields§
§text: StringThe full text buffer (including any composing preedit).
base: usizeSelection anchor, byte offset into text.
extent: usizeSelection focus, byte offset into text.
composing: Option<Range<usize>>Composing (preedit) region as a byte range, or None when not
composing.
Trait Implementations§
Source§impl Clone for EditingStateBytes
impl Clone for EditingStateBytes
Source§impl Debug for EditingStateBytes
impl Debug for EditingStateBytes
impl Eq for EditingStateBytes
Source§impl PartialEq for EditingStateBytes
impl PartialEq for EditingStateBytes
impl StructuralPartialEq for EditingStateBytes
Auto Trait Implementations§
impl Freeze for EditingStateBytes
impl RefUnwindSafe for EditingStateBytes
impl Send for EditingStateBytes
impl Sync for EditingStateBytes
impl Unpin for EditingStateBytes
impl UnsafeUnpin for EditingStateBytes
impl UnwindSafe for EditingStateBytes
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