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