pub struct RightCurly(/* private fields */);Expand description
Represents a token with Kind::LeftCurly - a } character. Use T![‘}’] to refer to this.
Implementations§
Source§impl RightCurly
impl RightCurly
pub const fn dummy() -> Self
pub fn associated_whitespace(&self) -> AssociatedWhitespaceRules
pub fn with_associated_whitespace( &self, rules: AssociatedWhitespaceRules, ) -> Self
Trait Implementations§
Source§impl Clone for RightCurly
impl Clone for RightCurly
Source§fn clone(&self) -> RightCurly
fn clone(&self) -> RightCurly
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 Debug for RightCurly
impl Debug for RightCurly
Source§impl Default for RightCurly
impl Default for RightCurly
Source§fn default() -> RightCurly
fn default() -> RightCurly
Returns the “default value” for a type. Read more
Source§impl From<RightCurly> for Cursor
impl From<RightCurly> for Cursor
Source§fn from(value: RightCurly) -> Self
fn from(value: RightCurly) -> Self
Converts to this type from the input type.
Source§impl From<RightCurly> for Token
impl From<RightCurly> for Token
Source§fn from(value: RightCurly) -> Self
fn from(value: RightCurly) -> Self
Converts to this type from the input type.
Source§impl Hash for RightCurly
impl Hash for RightCurly
Source§impl Ord for RightCurly
impl Ord for RightCurly
Source§fn cmp(&self, other: &RightCurly) -> Ordering
fn cmp(&self, other: &RightCurly) -> 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> Parse<'a> for RightCurly
impl<'a> Parse<'a> for RightCurly
Source§impl PartialEq for RightCurly
impl PartialEq for RightCurly
Source§impl PartialOrd for RightCurly
impl PartialOrd for RightCurly
Source§impl<'a> Peek<'a> for RightCurly
impl<'a> Peek<'a> for RightCurly
Source§impl ToCursors for RightCurly
impl ToCursors for RightCurly
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for RightCurly
impl Eq for RightCurly
impl StructuralPartialEq for RightCurly
Auto Trait Implementations§
impl Freeze for RightCurly
impl RefUnwindSafe for RightCurly
impl Send for RightCurly
impl Sync for RightCurly
impl Unpin for RightCurly
impl UnwindSafe for RightCurly
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