pub struct Bracketed<T> {
pub open_bracket: OpenBracket,
pub body: T,
pub close_bracket: CloseBracket,
}
Expand description
Parses [ body ]
Fields§
§open_bracket: OpenBracket
§body: T
§close_bracket: CloseBracket
Trait Implementations§
Source§impl<T: Ord> Ord for Bracketed<T>
impl<T: Ord> Ord for Bracketed<T>
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: PartialOrd> PartialOrd for Bracketed<T>
impl<T: PartialOrd> PartialOrd for Bracketed<T>
impl<T: Copy> Copy for Bracketed<T>
impl<T: Eq> Eq for Bracketed<T>
impl<T> StructuralPartialEq for Bracketed<T>
Auto Trait Implementations§
impl<T> Freeze for Bracketed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bracketed<T>where
T: RefUnwindSafe,
impl<T> Send for Bracketed<T>where
T: Send,
impl<T> Sync for Bracketed<T>where
T: Sync,
impl<T> Unpin for Bracketed<T>where
T: Unpin,
impl<T> UnwindSafe for Bracketed<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