#[non_exhaustive]pub enum LabelExpressionKind {
Name(Name),
Wildcard,
Not(Box<LabelExpression>),
And(Vec<LabelExpression>),
Or(Vec<LabelExpression>),
Parenthesized(Box<LabelExpression>),
Error(ErrorNode),
}Expand description
The form of a label/type boolean expression.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Name(Name)
Wildcard
Not(Box<LabelExpression>)
And(Vec<LabelExpression>)
Or(Vec<LabelExpression>)
Parenthesized(Box<LabelExpression>)
Error(ErrorNode)
Trait Implementations§
Source§impl Clone for LabelExpressionKind
impl Clone for LabelExpressionKind
Source§impl Debug for LabelExpressionKind
impl Debug for LabelExpressionKind
Source§impl<'de> Deserialize<'de> for LabelExpressionKind
impl<'de> Deserialize<'de> for LabelExpressionKind
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
impl Eq for LabelExpressionKind
Source§impl Hash for LabelExpressionKind
impl Hash for LabelExpressionKind
Source§impl PartialEq for LabelExpressionKind
impl PartialEq for LabelExpressionKind
Source§impl Serialize for LabelExpressionKind
impl Serialize for LabelExpressionKind
impl StructuralPartialEq for LabelExpressionKind
Auto Trait Implementations§
impl Freeze for LabelExpressionKind
impl RefUnwindSafe for LabelExpressionKind
impl Send for LabelExpressionKind
impl Sync for LabelExpressionKind
impl Unpin for LabelExpressionKind
impl UnsafeUnpin for LabelExpressionKind
impl UnwindSafe for LabelExpressionKind
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