pub struct CstCommands { /* private fields */ }Implementations§
Source§impl CstCommands
impl CstCommands
pub fn delete_node(&mut self, id: impl Into<NodeTarget>)
pub fn delete_recursive(&mut self, id: impl Into<NodeTarget>)
pub fn insert_dynamic_terminal( &mut self, kind: TerminalKind, data: impl Into<String>, ) -> CommandNodeId
pub fn insert_node(&mut self, data: CstNode) -> CommandNodeId
pub fn update_node(&mut self, id: impl Into<NodeTarget>, data: CstNode)
pub fn update_children( &mut self, id: impl Into<NodeTarget>, children: impl IntoIterator<Item = impl Into<NodeTarget>>, )
Sourcepub fn add_nodes_before(
&mut self,
id: impl Into<NodeTarget>,
before: impl Into<NodeTarget>,
data: impl IntoIterator<Item = impl Into<NodeTarget>>,
)
pub fn add_nodes_before( &mut self, id: impl Into<NodeTarget>, before: impl Into<NodeTarget>, data: impl IntoIterator<Item = impl Into<NodeTarget>>, )
Add nodes before the target child node
Sourcepub fn add_nodes_after(
&mut self,
id: impl Into<NodeTarget>,
after: impl Into<NodeTarget>,
data: impl IntoIterator<Item = impl Into<NodeTarget>>,
)
pub fn add_nodes_after( &mut self, id: impl Into<NodeTarget>, after: impl Into<NodeTarget>, data: impl IntoIterator<Item = impl Into<NodeTarget>>, )
Add nodes after the target child node
Source§impl CstCommands
impl CstCommands
Trait Implementations§
Source§impl Clone for CstCommands
impl Clone for CstCommands
Source§fn clone(&self) -> CstCommands
fn clone(&self) -> CstCommands
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 Debug for CstCommands
impl Debug for CstCommands
Source§impl Default for CstCommands
impl Default for CstCommands
Source§fn default() -> CstCommands
fn default() -> CstCommands
Returns the “default value” for a type. Read more
Source§impl PartialEq for CstCommands
impl PartialEq for CstCommands
impl Eq for CstCommands
impl StructuralPartialEq for CstCommands
Auto Trait Implementations§
impl Freeze for CstCommands
impl RefUnwindSafe for CstCommands
impl Send for CstCommands
impl Sync for CstCommands
impl Unpin for CstCommands
impl UnwindSafe for CstCommands
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