[][src]Struct rusttyc::types::AbstractTypeTable

pub struct AbstractTypeTable<AbsTy: Abstract> { /* fields omitted */ }

An implementation of TypeTable for type implementing Abstract. See ReifiedTypeTable for an implementation specializing on concrete types.

Can automatically be generated from a HashMap<TcKey, AbsTy> for AbsTy: Abstract.

Implementations

impl<AbsTy> AbstractTypeTable<AbsTy> where
    AbsTy: Abstract + Reifiable
[src]

pub fn reified(self) -> ReifiedTypeTable<AbsTy::Reified>[src]

Transforms an AbstractTypeTable into a ReifiedTypeTable by reifying all abstract types.

impl<AbsTy> AbstractTypeTable<AbsTy> where
    AbsTy: Abstract + TryReifiable
[src]

pub fn try_reified(self) -> Result<ReifiedTypeTable<AbsTy::Reified>, ()>[src]

Attempts to transform an AbstractTypeTable into a ReifiedTypeTable by reifying all abstract types.

Trait Implementations

impl<AbsTy: Clone + Abstract> Clone for AbstractTypeTable<AbsTy>[src]

impl<AbsTy: Debug + Abstract> Debug for AbstractTypeTable<AbsTy>[src]

impl<AbsTy: Abstract> From<HashMap<TcKey, AbsTy, RandomState>> for AbstractTypeTable<AbsTy>[src]

impl<AbsTy: Abstract> Index<TcKey> for AbstractTypeTable<AbsTy>[src]

type Output = AbsTy

The returned type after indexing.

impl<AbsTy: Abstract> TypeTable for AbstractTypeTable<AbsTy>[src]

type Type = AbsTy

The (rust-) type of the (external-) type stored in this type table.

Auto Trait Implementations

impl<AbsTy> RefUnwindSafe for AbstractTypeTable<AbsTy> where
    AbsTy: RefUnwindSafe

impl<AbsTy> Send for AbstractTypeTable<AbsTy> where
    AbsTy: Send

impl<AbsTy> Sync for AbstractTypeTable<AbsTy> where
    AbsTy: Sync

impl<AbsTy> Unpin for AbstractTypeTable<AbsTy> where
    AbsTy: Unpin

impl<AbsTy> UnwindSafe for AbstractTypeTable<AbsTy> where
    AbsTy: 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, 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.