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