pub struct UnaryExpr {
pub expr: Box<Expr>,
}Expand description
UnaryExpr will negate the expr
Fields§
§expr: Box<Expr>Trait Implementations§
Source§impl Prettier for UnaryExpr
impl Prettier for UnaryExpr
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 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 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 UnaryExpr
impl StructuralPartialEq for UnaryExpr
Auto Trait Implementations§
impl Freeze for UnaryExpr
impl !RefUnwindSafe for UnaryExpr
impl Send for UnaryExpr
impl Sync for UnaryExpr
impl Unpin for UnaryExpr
impl !UnwindSafe for UnaryExpr
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.