pub struct Paren {
pub this: Expression,
pub trailing_comments: Vec<String>,
}Expand description
Represent an explicit parenthesized expression for grouping precedence.
Preserves user-written parentheses so that (a + b) * c round-trips
correctly instead of being flattened to a + b * c.
Fields§
§this: ExpressionThe inner expression wrapped by parentheses.
trailing_comments: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Paren
impl<'de> Deserialize<'de> for Paren
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Paren
Auto Trait Implementations§
impl Freeze for Paren
impl RefUnwindSafe for Paren
impl Send for Paren
impl Sync for Paren
impl Unpin for Paren
impl UnwindSafe for Paren
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