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