pub(crate) struct RAngle;
Expand description
There are some lexing ambiguities with >>
because it can represet both a right shift or two
closing angle brackets (e.g., Vec<Option<i32>>
). We solve the ambiguity by giving >
a
special token if it’s immediately followed by another >
, i.e., >>
is tokenized as
TokenKind::GtFollowedByGt
followed by TokenKind::Gt
.
Use this struct to match on a right angle bracket for the purpose of parsing generics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RAngle
impl RefUnwindSafe for RAngle
impl Send for RAngle
impl Sync for RAngle
impl Unpin for RAngle
impl UnwindSafe for RAngle
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