[][src]Struct dyon::Dfn

pub struct Dfn {
    pub lts: Vec<Lt>,
    pub tys: Vec<Type>,
    pub ret: Type,
    pub ext: Vec<(Vec<Arc<String>>, Vec<Type>, Type)>,
    pub lazy: &'static [&'static [Lazy]],
}

Stores preloaded function constraints. These are already checked.

Fields

lts: Vec<Lt>

Lifetimes of argument.

tys: Vec<Type>

Argument types of function.

ret: Type

Return type of function.

ext: Vec<(Vec<Arc<String>>, Vec<Type>, Type)>

Extra type information.

Stores type variables, argument types, return type.

lazy: &'static [&'static [Lazy]]

Stores lazy invariants.

Implementations

impl Dfn[src]

pub fn nl(args: Vec<Type>, ret: Type) -> Dfn[src]

Creates a new function signature with no lifetime or refinement.

pub fn new(f: &Function) -> Dfn[src]

Creates new function signature from an AST function.

pub fn returns(&self) -> bool[src]

Returns true if the function returns something.

Trait Implementations

impl Clone for Dfn[src]

impl Debug for Dfn[src]

impl PartialEq<Dfn> for Dfn[src]

impl StructuralPartialEq for Dfn[src]

Auto Trait Implementations

impl !RefUnwindSafe for Dfn

impl Send for Dfn

impl Sync for Dfn

impl Unpin for Dfn

impl !UnwindSafe for Dfn

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, 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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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