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
sourceimpl<'de> Deserialize<'de> for Pattern
impl<'de> Deserialize<'de> for Pattern
sourcefn 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
sourceimpl From<Dictionary> for Pattern
impl From<Dictionary> for Pattern
sourcefn from(dict: Dictionary) -> Self
fn from(dict: Dictionary) -> Self
Converts to this type from the input type.
sourceimpl From<InstanceLiteral> for Pattern
impl From<InstanceLiteral> for Pattern
sourcefn from(lit: InstanceLiteral) -> Self
fn from(lit: InstanceLiteral) -> Self
Converts to this type from the input type.
sourceimpl From<Pattern> for TestHelper<Term>
impl From<Pattern> for TestHelper<Term>
sourceimpl From<Pattern> for TestHelper<Value>
impl From<Pattern> for TestHelper<Value>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more