pub struct ParenExpr {
pub expr: Box<Expr>,
}
Fields§
§expr: Box<Expr>
Trait Implementations§
Source§impl Prettier for ParenExpr
impl Prettier for ParenExpr
Source§fn format(&self, level: usize, max: usize) -> String
fn format(&self, level: usize, max: usize) -> String
override format if expr needs to be split into multiple lines
Source§fn pretty(&self, level: usize, max: usize) -> String
fn pretty(&self, level: usize, max: usize) -> String
max param is short for max_characters_per_line.
Source§fn needs_split(&self, max: usize) -> bool
fn needs_split(&self, max: usize) -> bool
override needs_split to return false, in order not to split multiple lines
impl Eq for ParenExpr
impl StructuralPartialEq for ParenExpr
Auto Trait Implementations§
impl Freeze for ParenExpr
impl !RefUnwindSafe for ParenExpr
impl Send for ParenExpr
impl Sync for ParenExpr
impl Unpin for ParenExpr
impl !UnwindSafe for ParenExpr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.