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
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)