pub struct Parenthesis { /* private fields */ }
Expand description
Represents a sub-expression wrapped in parenthesis (( <expr> )
).
Implementations§
Source§impl Parenthesis
impl Parenthesis
Sourcepub fn new(inner: Expression) -> Parenthesis
pub fn new(inner: Expression) -> Parenthesis
Creates a new Parenthesis
value from an Expression
.
Sourcepub fn inner(&self) -> &Expression
pub fn inner(&self) -> &Expression
Returns a reference to the wrapped Expression
.
Sourcepub fn inner_mut(&mut self) -> &mut Expression
pub fn inner_mut(&mut self) -> &mut Expression
Returns a mutable reference to the wrapped Expression
.
Sourcepub fn into_inner(self) -> Expression
pub fn into_inner(self) -> Expression
Consumes the Parenthesis
and returns the wrapped Expression
.
Trait Implementations§
Source§impl Clone for Parenthesis
impl Clone for Parenthesis
Source§fn clone(&self) -> Parenthesis
fn clone(&self) -> Parenthesis
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Parenthesis
impl Debug for Parenthesis
Source§impl Decorate for Parenthesis
impl Decorate for Parenthesis
Source§impl From<Parenthesis> for Expression
impl From<Parenthesis> for Expression
Source§fn from(value: Parenthesis) -> Self
fn from(value: Parenthesis) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Parenthesis
impl PartialEq for Parenthesis
Source§impl Span for Parenthesis
impl Span for Parenthesis
impl Eq for Parenthesis
Auto Trait Implementations§
impl Freeze for Parenthesis
impl RefUnwindSafe for Parenthesis
impl Send for Parenthesis
impl Sync for Parenthesis
impl Unpin for Parenthesis
impl UnwindSafe for Parenthesis
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