[][src]Struct moore_svlog::mir::Assignment

pub struct Assignment<'a> {
    pub id: NodeId,
    pub env: ParamEnv,
    pub span: Span,
    pub ty: &'a UnpackedType<'a>,
    pub lhs: &'a Lvalue<'a>,
    pub rhs: &'a Rvalue<'a>,
}

An assignment of an Rvalue to an Lvalue.

Fields

id: NodeId

The expression or statement which spawned this assignment.

env: ParamEnv

The environment within which the assignment lives.

span: Span

The span in the source file where the assignment originates from.

ty: &'a UnpackedType<'a>

The type of the assignment.

lhs: &'a Lvalue<'a>

The left-hand side.

rhs: &'a Rvalue<'a>

The right-hand side.

Implementations

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

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

Check whether the assignment represents a lowering error tombstone.

Trait Implementations

impl<'a> AcceptVisitor<'a> for Assignment<'a>[src]

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

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

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

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

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

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

impl<'a> WalkVisitor<'a> for Assignment<'a>[src]

pub fn walk(&'a self, visitor: &mut dyn Visitor<'a>)[src]

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_assignment(self)
  • self.accept(visitor)
  • visitor.post_visit_assignment(self);

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Assignment<'a>[src]

impl<'a> Send for Assignment<'a>[src]

impl<'a> Sync for Assignment<'a>[src]

impl<'a> Unpin for Assignment<'a>[src]

impl<'a> !UnwindSafe for Assignment<'a>[src]

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> Pointable for T

type Init = T

The type for initializers.

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.