pub struct PendingEdit {
pub id: String,
pub original: String,
pub draft: String,
}Expand description
A topic draft that is being edited in one of the views. Hosts read it to
protect unsaved text (before switching documents or closing a window) and
decide with MindMapHandle::commit_pending or
MindMapHandle::cancel_pending.
Fields§
§id: StringEdited node.
original: StringTopic when editing started.
draft: StringCurrent draft text.
Implementations§
Source§impl PendingEdit
impl PendingEdit
Sourcepub fn is_changed(&self) -> bool
pub fn is_changed(&self) -> bool
Whether committing would change the document.
Trait Implementations§
Source§impl Clone for PendingEdit
impl Clone for PendingEdit
Source§impl Debug for PendingEdit
impl Debug for PendingEdit
impl Eq for PendingEdit
Source§impl PartialEq for PendingEdit
impl PartialEq for PendingEdit
impl StructuralPartialEq for PendingEdit
Auto Trait Implementations§
impl Forget for PendingEdit
impl Freeze for PendingEdit
impl Move for PendingEdit
impl RefUnwindSafe for PendingEdit
impl Send for PendingEdit
impl Sync for PendingEdit
impl Unpin for PendingEdit
impl UnsafeUnpin for PendingEdit
impl UnwindSafe for PendingEdit
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> DependencyElement for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.