pub struct TreeViewNodeMove {
pub node: String,
pub new_parent: Option<String>,
pub index: usize,
}Expand description
One move of a node, which the application applies to its tree: the node leaves its parent
and becomes the child of new_parent at index.
Fields§
§node: StringThe node, with its subtree.
new_parent: Option<String>The node’s new parent; None for the tree’s root nodes.
index: usizeThe node’s index among new_parent’s children, counted after the node has left its
parent.
Trait Implementations§
Source§impl Clone for TreeViewNodeMove
impl Clone for TreeViewNodeMove
Source§impl Debug for TreeViewNodeMove
impl Debug for TreeViewNodeMove
impl Eq for TreeViewNodeMove
Source§impl PartialEq for TreeViewNodeMove
impl PartialEq for TreeViewNodeMove
impl StructuralPartialEq for TreeViewNodeMove
Auto Trait Implementations§
impl Forget for TreeViewNodeMove
impl Freeze for TreeViewNodeMove
impl Move for TreeViewNodeMove
impl RefUnwindSafe for TreeViewNodeMove
impl Send for TreeViewNodeMovewhere
RawVecInner: Send,
impl Sync for TreeViewNodeMovewhere
RawVecInner: Sync,
impl Unpin for TreeViewNodeMove
impl UnsafeUnpin for TreeViewNodeMove
impl UnwindSafe for TreeViewNodeMovewhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.