#[repr(u16)]pub enum CppElementType {
Token(CppTokenType),
SourceFile,
Error,
}Variants§
Trait Implementations§
Source§impl Clone for CppElementType
impl Clone for CppElementType
Source§fn clone(&self) -> CppElementType
fn clone(&self) -> CppElementType
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 CppElementType
impl Debug for CppElementType
Source§impl<'de> Deserialize<'de> for CppElementType
impl<'de> Deserialize<'de> for CppElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for CppElementType
impl ElementType for CppElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_root(&self) -> bool
fn is_root(&self) -> bool
Returns true if this element represents the root of the parsed tree. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this element represents an error condition. Read more
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<CppTokenType> for CppElementType
impl From<CppTokenType> for CppElementType
Source§fn from(token: CppTokenType) -> Self
fn from(token: CppTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for CppElementType
impl Hash for CppElementType
Source§impl Ord for CppElementType
impl Ord for CppElementType
Source§fn cmp(&self, other: &CppElementType) -> Ordering
fn cmp(&self, other: &CppElementType) -> 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 CppElementType
impl PartialEq for CppElementType
Source§impl PartialOrd for CppElementType
impl PartialOrd for CppElementType
Source§impl Serialize for CppElementType
impl Serialize for CppElementType
impl Copy for CppElementType
impl Eq for CppElementType
impl StructuralPartialEq for CppElementType
Auto Trait Implementations§
impl Freeze for CppElementType
impl RefUnwindSafe for CppElementType
impl Send for CppElementType
impl Sync for CppElementType
impl Unpin for CppElementType
impl UnwindSafe for CppElementType
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