Struct cstree::RawSyntaxKind
source · pub struct RawSyntaxKind(pub u32);
Expand description
RawSyntaxKind
is a type tag for each token or node.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for RawSyntaxKind
impl Clone for RawSyntaxKind
source§fn clone(&self) -> RawSyntaxKind
fn clone(&self) -> RawSyntaxKind
Returns a copy 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 RawSyntaxKind
impl Debug for RawSyntaxKind
source§impl<'de> Deserialize<'de> for RawSyntaxKind
impl<'de> Deserialize<'de> for RawSyntaxKind
source§fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where
De: Deserializer<'de>,
fn deserialize<De>(deserializer: De) -> Result<Self, De::Error>where De: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RawSyntaxKind
impl Hash for RawSyntaxKind
source§impl Ord for RawSyntaxKind
impl Ord for RawSyntaxKind
source§fn cmp(&self, other: &RawSyntaxKind) -> Ordering
fn cmp(&self, other: &RawSyntaxKind) -> 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<RawSyntaxKind> for RawSyntaxKind
impl PartialEq<RawSyntaxKind> for RawSyntaxKind
source§fn eq(&self, other: &RawSyntaxKind) -> bool
fn eq(&self, other: &RawSyntaxKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RawSyntaxKind> for RawSyntaxKind
impl PartialOrd<RawSyntaxKind> for RawSyntaxKind
source§fn partial_cmp(&self, other: &RawSyntaxKind) -> Option<Ordering>
fn partial_cmp(&self, other: &RawSyntaxKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RawSyntaxKind
impl Serialize for RawSyntaxKind
impl Copy for RawSyntaxKind
impl Eq for RawSyntaxKind
impl StructuralEq for RawSyntaxKind
impl StructuralPartialEq for RawSyntaxKind
Auto Trait Implementations§
impl RefUnwindSafe for RawSyntaxKind
impl Send for RawSyntaxKind
impl Sync for RawSyntaxKind
impl Unpin for RawSyntaxKind
impl UnwindSafe for RawSyntaxKind
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more