pub struct StmtNode { /* private fields */ }
Implementations§
Source§impl StmtNode
impl StmtNode
pub fn new(stmt: Stmt, pos: Position) -> Self
pub fn get_stmt(&self) -> &Stmt
pub fn position(&self) -> Position
pub fn is_noop(&self) -> bool
pub fn is_fn_call(&self) -> bool
pub fn get_fn_call_name(&self) -> Option<String>
pub fn get_mut_stmt(&mut self) -> &mut Stmt
pub fn set_fn_call_name(&mut self, name: String)
pub fn is_val_decl(&self) -> bool
Trait Implementations§
Source§impl NodeTrait for StmtNode
impl NodeTrait for StmtNode
fn get_id(&self) -> &str
fn get_data(&self, key: &str) -> Option<Data>
fn set_data(&mut self, key: &str, value: Data)
fn get_children(&self) -> Vec<&dyn NodeTrait>
fn get_mut_children(&mut self) -> Vec<&mut dyn NodeTrait>
fn get_extra(&self) -> &HashMap<String, Box<dyn Any>>
Auto Trait Implementations§
impl Freeze for StmtNode
impl RefUnwindSafe for StmtNode
impl Send for StmtNode
impl Sync for StmtNode
impl Unpin for StmtNode
impl UnwindSafe for StmtNode
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