pub enum TreeViewCommand<T> {
BeginRename(T),
BeginCreate(TreeCreateRequest<T>),
}Expand description
One-shot externally bound editor command.
The widget consumes a present command by resetting its signal to None
during layout or the next routed event.
§Examples
use ailloli_ui_widgets::controls::TreeViewCommand;
let command = TreeViewCommand::BeginRename(4_u8);
assert!(matches!(command, TreeViewCommand::BeginRename(4)));Variants§
BeginRename(T)
Begin editing the visible enabled node with this ID when allowed.
BeginCreate(TreeCreateRequest<T>)
Run the create factory and begin editing the resulting node when allowed.
Trait Implementations§
Source§impl<T: Clone> Clone for TreeViewCommand<T>
impl<T: Clone> Clone for TreeViewCommand<T>
Source§fn clone(&self) -> TreeViewCommand<T>
fn clone(&self) -> TreeViewCommand<T>
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<T: Debug> Debug for TreeViewCommand<T>
impl<T: Debug> Debug for TreeViewCommand<T>
Source§impl<T: PartialEq> PartialEq for TreeViewCommand<T>
impl<T: PartialEq> PartialEq for TreeViewCommand<T>
impl<T: Eq> Eq for TreeViewCommand<T>
impl<T> StructuralPartialEq for TreeViewCommand<T>
Auto Trait Implementations§
impl<T> Freeze for TreeViewCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for TreeViewCommand<T>where
T: RefUnwindSafe,
impl<T> Send for TreeViewCommand<T>where
T: Send,
impl<T> Sync for TreeViewCommand<T>where
T: Sync,
impl<T> Unpin for TreeViewCommand<T>where
T: Unpin,
impl<T> UnwindSafe for TreeViewCommand<T>where
T: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.