pub struct CopyToCommand { /* private fields */ }Available on crate features
DOM and Runtime and experimental only.Expand description
Creates a deep copy of the specified node and places it into the target container before the given anchor.
Implementations§
Source§impl CopyToCommand
impl CopyToCommand
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 copy into.
Sourcepub fn insert_before_node_id(&self) -> Option<&NodeId>
pub fn insert_before_node_id(&self) -> Option<&NodeId>
Drop the copy before this node (if absent, the copy becomes the last child of
targetNodeId).
Trait Implementations§
Source§impl Clone for CopyToCommand
impl Clone for CopyToCommand
Source§fn clone(&self) -> CopyToCommand
fn clone(&self) -> CopyToCommand
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 CopyToCommand
impl Command for CopyToCommand
Source§impl Debug for CopyToCommand
impl Debug for CopyToCommand
Source§impl<'de> Deserialize<'de> for CopyToCommand
impl<'de> Deserialize<'de> for CopyToCommand
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 CopyToCommand
impl RefUnwindSafe for CopyToCommand
impl Send for CopyToCommand
impl Sync for CopyToCommand
impl Unpin for CopyToCommand
impl UnwindSafe for CopyToCommand
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