pub struct Parenthesized<T> {
pub open_paren: OpenParen,
pub body: T,
pub close_paren: CloseParen,
}
Expand description
Parses ( body )
Fields§
§open_paren: OpenParen
§body: T
§close_paren: CloseParen
Trait Implementations§
Source§impl<T: Clone> Clone for Parenthesized<T>
impl<T: Clone> Clone for Parenthesized<T>
Source§fn clone(&self) -> Parenthesized<T>
fn clone(&self) -> Parenthesized<T>
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<T: Debug> Debug for Parenthesized<T>
impl<T: Debug> Debug for Parenthesized<T>
Source§impl<T: Default> Default for Parenthesized<T>
impl<T: Default> Default for Parenthesized<T>
Source§fn default() -> Parenthesized<T>
fn default() -> Parenthesized<T>
Returns the “default value” for a type. Read more
Source§impl<T: Hash> Hash for Parenthesized<T>
impl<T: Hash> Hash for Parenthesized<T>
Source§impl<T: Ord> Ord for Parenthesized<T>
impl<T: Ord> Ord for Parenthesized<T>
Source§fn cmp(&self, other: &Parenthesized<T>) -> Ordering
fn cmp(&self, other: &Parenthesized<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, T> Parse<'a> for Parenthesized<T>where
T: Parse<'a>,
impl<'a, T> Parse<'a> for Parenthesized<T>where
T: Parse<'a>,
Source§impl<T: PartialEq> PartialEq for Parenthesized<T>
impl<T: PartialEq> PartialEq for Parenthesized<T>
Source§impl<T: PartialOrd> PartialOrd for Parenthesized<T>
impl<T: PartialOrd> PartialOrd for Parenthesized<T>
impl<T: Copy> Copy for Parenthesized<T>
impl<T: Eq> Eq for Parenthesized<T>
impl<T> StructuralPartialEq for Parenthesized<T>
Auto Trait Implementations§
impl<T> Freeze for Parenthesized<T>where
T: Freeze,
impl<T> RefUnwindSafe for Parenthesized<T>where
T: RefUnwindSafe,
impl<T> Send for Parenthesized<T>where
T: Send,
impl<T> Sync for Parenthesized<T>where
T: Sync,
impl<T> Unpin for Parenthesized<T>where
T: Unpin,
impl<T> UnwindSafe for Parenthesized<T>where
T: UnwindSafe,
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