Enum editor2::EditorEvent
source · pub enum EditorEvent {
Show 16 variants
InputIgnored {
text: Arc<str>,
},
InputHandled {
utf16_range_to_replace: Option<Range<isize>>,
text: Arc<str>,
},
ExcerptsAdded {
buffer: Model<Buffer>,
predecessor: ExcerptId,
excerpts: Vec<(ExcerptId, ExcerptRange<Anchor>)>,
},
ExcerptsRemoved {
ids: Vec<ExcerptId>,
},
BufferEdited,
Edited,
Reparsed,
Focused,
Blurred,
DirtyChanged,
Saved,
TitleChanged,
DiffBaseChanged,
SelectionsChanged {
local: bool,
},
ScrollPositionChanged {
local: bool,
autoscroll: bool,
},
Closed,
}
Variants§
InputIgnored
InputHandled
ExcerptsAdded
Fields
§
excerpts: Vec<(ExcerptId, ExcerptRange<Anchor>)>
ExcerptsRemoved
BufferEdited
Edited
Reparsed
Focused
Blurred
DirtyChanged
Saved
TitleChanged
DiffBaseChanged
SelectionsChanged
ScrollPositionChanged
Closed
Trait Implementations§
source§impl Clone for EditorEvent
impl Clone for EditorEvent
source§fn clone(&self) -> EditorEvent
fn clone(&self) -> EditorEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EditorEvent
impl Debug for EditorEvent
source§impl FollowableEvents for EditorEvent
impl FollowableEvents for EditorEvent
fn to_follow_event(&self) -> Option<FollowEvent>
source§impl PartialEq<EditorEvent> for EditorEvent
impl PartialEq<EditorEvent> for EditorEvent
source§fn eq(&self, other: &EditorEvent) -> bool
fn eq(&self, other: &EditorEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EditorEvent
impl EventEmitter<EditorEvent> for Editor
impl StructuralEq for EditorEvent
impl StructuralPartialEq for EditorEvent
Auto Trait Implementations§
impl !RefUnwindSafe for EditorEvent
impl Send for EditorEvent
impl Sync for EditorEvent
impl Unpin for EditorEvent
impl !UnwindSafe for EditorEvent
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.