[][src]Enum smt2::typing::SortMissmatch

pub enum SortMissmatch<S: Sort> {
    Var(usizeSpan),
    Match {
        sort: S,
        parameters: Vec<SortMissmatch<S>>,
    },
    Miss {
        expected_sort: S,
        expected_parameters: Vec<TypeRef<S>>,
        given_sort: S,
        given_parameters: Vec<TypeRef<S>>,
    },
}

Variants

Var(usizeSpan)
Match

Fields of Match

sort: Sparameters: Vec<SortMissmatch<S>>
Miss

Fields of Miss

expected_sort: Sexpected_parameters: Vec<TypeRef<S>>given_sort: Sgiven_parameters: Vec<TypeRef<S>>

Implementations

impl<S: Sort> SortMissmatch<S>[src]

pub fn mismatched_sorts(&self) -> (&S, &S)[src]

Trait Implementations

impl<S: Sort> From<GroundTypeRef<S>> for SortMissmatch<S>[src]

impl<S: Sort> From<TypeRef<S>> for SortMissmatch<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for SortMissmatch<S> where
    S: RefUnwindSafe

impl<S> Send for SortMissmatch<S> where
    S: Send

impl<S> Sync for SortMissmatch<S> where
    S: Sync

impl<S> Unpin for SortMissmatch<S> where
    S: Unpin

impl<S> UnwindSafe for SortMissmatch<S> where
    S: UnwindSafe

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> From<T> for T[src]

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

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.