pub enum LabelOp {
True,
False,
Leaf(SmolStr),
Not(Box<Self>),
And(Box<Self>, Box<Self>),
Or(Box<Self>, Box<Self>),
}Expand description
Route matching operations, e.g.
ipmb::LabelOp::from("foo").and("bar").or(!ipmb::LabelOp::from("baz"));Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelOp
impl<'de> Deserialize<'de> for LabelOp
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
Auto Trait Implementations§
impl Freeze for LabelOp
impl RefUnwindSafe for LabelOp
impl Send for LabelOp
impl Sync for LabelOp
impl Unpin for LabelOp
impl UnwindSafe for LabelOp
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