[][src]Enum moore_svlog::mir::LvalueKind

pub enum LvalueKind<'a> {
    DestructArray(HashMap<usize, &'a Lvalue<'a>>),
    DestructStruct(Vec<&'a Lvalue<'a>>),
    Var(NodeId),
    Port(NodeId),
    Index {
        value: &'a Lvalue<'a>,
        base: &'a Rvalue<'a>,
        length: usize,
    },
    Member {
        value: &'a Lvalue<'a>,
        field: usize,
    },
    Error,
}

The different forms an lvalue expression may take.

Variants

DestructArray(HashMap<usize, &'a Lvalue<'a>>)

Destructor for an array.

DestructStruct(Vec<&'a Lvalue<'a>>)

Destructor for a struct.

Var(NodeId)

A reference to a variable declaration.

Port(NodeId)

A reference to a port declaration.

Index

A bit- or part-select.

Fields of Index

value: &'a Lvalue<'a>base: &'a Rvalue<'a>length: usize
Member

A struct field access.

Fields of Member

value: &'a Lvalue<'a>field: usize
Error

An error occurred during lowering.

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for LvalueKind<'a>

impl<'a> Send for LvalueKind<'a>

impl<'a> Sync for LvalueKind<'a>

impl<'a> Unpin for LvalueKind<'a>

impl<'a> UnwindSafe for LvalueKind<'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, 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.