pub struct ExprPrinter { /* private fields */ }Implementations§
Source§impl ExprPrinter
impl ExprPrinter
pub fn new(use_defs: DenseHashMap<*mut AstExpr, *mut Definition>) -> Self
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_local(&mut self, node: *mut AstExprLocal) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_constant_number( &mut self, node: *mut AstExprConstantNumber, ) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_constant_string( &mut self, node: *mut AstExprConstantString, ) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_constant_bool( &mut self, node: *mut AstExprConstantBool, ) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_constant_nil( &mut self, _node: *mut AstExprConstantNil, ) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_binary(&mut self, node: *mut AstExprBinary) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr_unary(&mut self, node: *mut AstExprUnary) -> bool
Source§impl ExprPrinter
impl ExprPrinter
pub fn visit_ast_expr(&mut self, _node: *mut AstExpr) -> bool
Trait Implementations§
Source§impl Clone for ExprPrinter
impl Clone for ExprPrinter
Source§fn clone(&self) -> ExprPrinter
fn clone(&self) -> ExprPrinter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for ExprPrinter
impl !Sync for ExprPrinter
impl Freeze for ExprPrinter
impl RefUnwindSafe for ExprPrinter
impl Unpin for ExprPrinter
impl UnsafeUnpin for ExprPrinter
impl UnwindSafe for ExprPrinter
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