Enum polar_core::terms::Pattern
source · pub enum Pattern {
Dictionary(Dictionary),
Instance(InstanceLiteral),
}
Expand description
Represents a pattern in a specializer or after isa.
Variants§
Dictionary(Dictionary)
Instance(InstanceLiteral)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pattern
impl<'de> Deserialize<'de> for Pattern
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 From<Dictionary> for Pattern
impl From<Dictionary> for Pattern
source§fn from(dict: Dictionary) -> Self
fn from(dict: Dictionary) -> Self
Converts to this type from the input type.
source§impl From<InstanceLiteral> for Pattern
impl From<InstanceLiteral> for Pattern
source§fn from(lit: InstanceLiteral) -> Self
fn from(lit: InstanceLiteral) -> Self
Converts to this type from the input type.
source§impl PartialEq for Pattern
impl PartialEq for Pattern
impl Eq for Pattern
impl StructuralEq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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