[][src]Enum smt2::AbstractGroundSort

pub enum AbstractGroundSort<T> {
    Sort {
        sort: T,
        parameters: Vec<AbstractGroundSort<T>>,
    },
    Param(usize),
}

A ground sort with sort parameter variables, used in a datatype declaration. Parameters are identified with their index.

Variants

Sort

Fields of Sort

sort: Tparameters: Vec<AbstractGroundSort<T>>
Param(usize)

Implementations

impl<T: Clone + PartialEq> AbstractGroundSort<T>[src]

pub fn as_type_ref(&self, context: &[TypeRef<T>]) -> TypeRef<T> where
    T: Debug
[src]

pub fn instanciate(
    &self,
    context: &[GroundSort<T>]
) -> Result<GroundSort<T>, ()>
[src]

Try to instanciate the abstract ground sort with the given parameters.

Trait Implementations

impl<T: Clone> Clone for AbstractGroundSort<T>[src]

impl<T: Display> Display for AbstractGroundSort<T>[src]

impl<'a, T: Clone> From<&'a GroundSort<T>> for AbstractGroundSort<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AbstractGroundSort<T> where
    T: RefUnwindSafe

impl<T> Send for AbstractGroundSort<T> where
    T: Send

impl<T> Sync for AbstractGroundSort<T> where
    T: Sync

impl<T> Unpin for AbstractGroundSort<T> where
    T: Unpin

impl<T> UnwindSafe for AbstractGroundSort<T> where
    T: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.