pub enum LeanElementType {
Root,
Error,
}Expand description
Element types for the Lean language.
Variants§
Trait Implementations§
Source§impl Clone for LeanElementType
impl Clone for LeanElementType
Source§fn clone(&self) -> LeanElementType
fn clone(&self) -> LeanElementType
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 LeanElementType
impl Debug for LeanElementType
Source§impl<'de> Deserialize<'de> for LeanElementType
impl<'de> Deserialize<'de> for LeanElementType
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 LeanElementType
impl ElementType for LeanElementType
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<LeanTokenType> for LeanElementType
impl From<LeanTokenType> for LeanElementType
Source§fn from(token: LeanTokenType) -> Self
fn from(token: LeanTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for LeanElementType
impl Hash for LeanElementType
Source§impl PartialEq for LeanElementType
impl PartialEq for LeanElementType
Source§impl Serialize for LeanElementType
impl Serialize for LeanElementType
impl Copy for LeanElementType
impl Eq for LeanElementType
impl StructuralPartialEq for LeanElementType
Auto Trait Implementations§
impl Freeze for LeanElementType
impl RefUnwindSafe for LeanElementType
impl Send for LeanElementType
impl Sync for LeanElementType
impl Unpin for LeanElementType
impl UnsafeUnpin for LeanElementType
impl UnwindSafe for LeanElementType
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