[][src]Enum polar_core::terms::Pattern

pub enum Pattern {
    Dictionary(Dictionary),
    Instance(InstanceLiteral),
}

Represents a pattern in a specializer or after isa.

Variants

Dictionary(Dictionary)
Instance(InstanceLiteral)

Implementations

impl Pattern[src]

pub fn value_as_pattern(value: &Value) -> Value[src]

pub fn term_as_pattern(term: &Term) -> Term[src]

Trait Implementations

impl Clone for Pattern[src]

impl Debug for Pattern[src]

impl<'de> Deserialize<'de> for Pattern[src]

impl Eq for Pattern[src]

impl From<Pattern> for TestHelper<Value>[src]

impl Hash for Pattern[src]

impl PartialEq<Pattern> for Pattern[src]

impl Serialize for Pattern[src]

impl StructuralEq for Pattern[src]

impl StructuralPartialEq for Pattern[src]

impl ToPolarString for Pattern[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.