pub struct Semicolon(/* private fields */);Expand description
Represents a token with Kind::Semicolon - a ; character. Use T![;] to refer to this.
Implementations§
Source§impl Semicolon
impl Semicolon
pub const fn dummy() -> Self
pub fn associated_whitespace(&self) -> AssociatedWhitespaceRules
pub fn with_associated_whitespace( &self, rules: AssociatedWhitespaceRules, ) -> Self
Trait Implementations§
impl Copy for Semicolon
impl Eq for Semicolon
Source§impl Ord for Semicolon
impl Ord for Semicolon
1.21.0 (const: unstable) · 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 PartialOrd for Semicolon
impl PartialOrd for Semicolon
Source§impl SemanticEq for Semicolon
impl SemanticEq for Semicolon
Source§fn semantic_eq(&self, s: &Self) -> bool
fn semantic_eq(&self, s: &Self) -> bool
Returns
true if self and other are semantically equal.impl StructuralPartialEq for Semicolon
Source§impl ToCursors for Semicolon
impl ToCursors for Semicolon
fn to_cursors(&self, s: &mut impl CursorSink)
Auto Trait Implementations§
impl Freeze for Semicolon
impl RefUnwindSafe for Semicolon
impl Send for Semicolon
impl Sync for Semicolon
impl Unpin for Semicolon
impl UnsafeUnpin for Semicolon
impl UnwindSafe for Semicolon
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