pub struct Response {
pub text_updated: bool,
pub selection_user_moved: bool,
pub open_camera: bool,
pub seq_before: usize,
pub seq_after: usize,
}Fields§
§text_updated: bool§selection_user_moved: boolTrue iff the selection was set by an explicit Select op or by
undo/redo restoring a historical selection. False when the
selection moved only because a Replace op OT-shifted its
offsets — that’s a side effect of editing, not a user navigation.
Callers use this to gate scroll-to-cursor: programmatic edits
(e.g. fold-button taps) shouldn’t pull the viewport.
open_camera: bool§seq_before: usizeSequence range of operations applied this frame. Use
buffer.replacements_since(seq_before) to get the edits.
seq_after: usizeTrait Implementations§
Source§impl BitOrAssign for Response
impl BitOrAssign for Response
Source§fn bitor_assign(&mut self, other: Response)
fn bitor_assign(&mut self, other: Response)
Performs the
|= operation. Read moreAuto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more