pub trait ParenthesizedNode<'a> {
// Required methods
fn lpar(&self) -> &Vec<LeftParen<'a>>;
fn rpar(&self) -> &Vec<RightParen<'a>>;
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self;
// Provided method
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)
where F: FnOnce(&mut CodegenState<'a>) { ... }
}
Required Methods§
fn lpar(&self) -> &Vec<LeftParen<'a>>
fn rpar(&self) -> &Vec<RightParen<'a>>
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self
Provided Methods§
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)where
F: FnOnce(&mut CodegenState<'a>),
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.