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