[][src]Struct moore_svlog::typeck::CastType

pub struct CastType<'a> {
    pub init: Type<'a>,
    pub ty: Type<'a>,
    pub casts: Vec<(CastOp, Type<'a>)>,
}

A type resulting from a sequence of casts.

Fields

init: Type<'a>

The initial type before casting.

ty: Type<'a>

The final type after casting.

casts: Vec<(CastOp, Type<'a>)>

The cast operations that lead to the result.

Implementations

impl<'a> CastType<'a>[src]

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

Check if this cast type is a tombstone.

pub fn add_cast(&mut self, op: CastOp, ty: Type<'a>)[src]

Add a cast operation.

Trait Implementations

impl<'a> Clone for CastType<'a>[src]

impl<'a> Debug for CastType<'a>[src]

impl<'_> Display for CastType<'_>[src]

impl<'a> Eq for CastType<'a>[src]

impl<'a> From<&'a TypeKind<'a>> for CastType<'a>[src]

impl<'a> PartialEq<CastType<'a>> for CastType<'a>[src]

impl<'a> StructuralEq for CastType<'a>[src]

impl<'a> StructuralPartialEq for CastType<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CastType<'a>

impl<'a> Send for CastType<'a>

impl<'a> Sync for CastType<'a>

impl<'a> Unpin for CastType<'a>

impl<'a> UnwindSafe for CastType<'a>

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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.