pub struct Parenthesized<T>(pub T);
Expand description
Parse an item surrounded by parenthesis.
Tuple Fields§
§0: T
Implementations§
Source§impl<T> Parenthesized<T>
impl<T> Parenthesized<T>
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 duplicate 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: 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<T: ParseMore> ParseMore for Parenthesized<T>
Imlement ParseMore for the Parenthesized type.
impl<T: ParseMore> ParseMore for Parenthesized<T>
Imlement ParseMore for the Parenthesized type.
fn parse(input: ParseStream<'_>) -> Result<Self>
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