pub struct MoveToCommand { /* private fields */ }Available on crate features
DOM and Runtime only.Expand description
Moves node into the new container, places it before the given anchor.
Implementations§
Source§impl MoveToCommand
impl MoveToCommand
pub fn new( node_id: NodeId, target_node_id: NodeId, insert_before_node_id: Option<NodeId>, ) -> Self
Sourcepub fn target_node_id(&self) -> &NodeId
pub fn target_node_id(&self) -> &NodeId
Id of the element to drop the moved node into.
Sourcepub fn insert_before_node_id(&self) -> Option<&NodeId>
pub fn insert_before_node_id(&self) -> Option<&NodeId>
Drop node before this one (if absent, the moved node becomes the last child of
targetNodeId).
Trait Implementations§
Source§impl Clone for MoveToCommand
impl Clone for MoveToCommand
Source§fn clone(&self) -> MoveToCommand
fn clone(&self) -> MoveToCommand
Returns a duplicate 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 Command for MoveToCommand
impl Command for MoveToCommand
Source§impl Debug for MoveToCommand
impl Debug for MoveToCommand
Source§impl<'de> Deserialize<'de> for MoveToCommand
impl<'de> Deserialize<'de> for MoveToCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MoveToCommand
impl RefUnwindSafe for MoveToCommand
impl Send for MoveToCommand
impl Sync for MoveToCommand
impl Unpin for MoveToCommand
impl UnwindSafe for MoveToCommand
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