pub enum VLangElementType {
SourceFile,
Token(VLangTokenType),
}Expand description
Element types for the V language.
Variants§
Trait Implementations§
Source§impl Clone for VLangElementType
impl Clone for VLangElementType
Source§fn clone(&self) -> VLangElementType
fn clone(&self) -> VLangElementType
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 VLangElementType
impl Debug for VLangElementType
Source§impl<'de> Deserialize<'de> for VLangElementType
impl<'de> Deserialize<'de> for VLangElementType
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 VLangElementType
impl ElementType for VLangElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
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<VLangTokenType> for VLangElementType
impl From<VLangTokenType> for VLangElementType
Source§fn from(token: VLangTokenType) -> Self
fn from(token: VLangTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for VLangElementType
impl Hash for VLangElementType
Source§impl PartialEq for VLangElementType
impl PartialEq for VLangElementType
Source§impl Serialize for VLangElementType
impl Serialize for VLangElementType
impl Copy for VLangElementType
impl Eq for VLangElementType
impl StructuralPartialEq for VLangElementType
Auto Trait Implementations§
impl Freeze for VLangElementType
impl RefUnwindSafe for VLangElementType
impl Send for VLangElementType
impl Sync for VLangElementType
impl Unpin for VLangElementType
impl UnsafeUnpin for VLangElementType
impl UnwindSafe for VLangElementType
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