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

pub enum LvalueKind<'a> {
Show 13 variants Transmute(&'a Lvalue<'a>), DestructArray(Vec<&'a Lvalue<'a>>), DestructStruct(Vec<&'a Lvalue<'a>>), Genvar(NodeId), Var(NodeId), Port(NodeId), Intf(NodeId), IntfSignal(&'a Lvalue<'a>, NodeId), Index { value: &'a Lvalue<'a>, base: &'a Rvalue<'a>, length: usize, }, Member { value: &'a Lvalue<'a>, field: usize, }, Concat(Vec<&'a Lvalue<'a>>), Repeat(usize, &'a Lvalue<'a>), Error,
}
Expand description

The different forms an lvalue expression may take.

Variants

Transmute(&'a Lvalue<'a>)

A type cast which does not incur any operation. For example, going from bit [31:0] to int, or vice versa.

Tuple Fields of Transmute

0: &'a Lvalue<'a>
DestructArray(Vec<&'a Lvalue<'a>>)

Destructor for an array.

Tuple Fields of DestructArray

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

Destructor for a struct.

Tuple Fields of DestructStruct

0: Vec<&'a Lvalue<'a>>
Genvar(NodeId)

A reference to a genvar declaration.

Tuple Fields of Genvar

0: NodeId
Var(NodeId)

A reference to a variable declaration.

Tuple Fields of Var

0: NodeId
Port(NodeId)

A reference to a port declaration.

Tuple Fields of Port

0: NodeId
Intf(NodeId)

A reference to an interface.

Tuple Fields of Intf

0: NodeId
IntfSignal(&'a Lvalue<'a>, NodeId)

A reference to an interface’s signal.

Tuple Fields of IntfSignal

0: &'a Lvalue<'a>1: NodeId
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
Concat(Vec<&'a Lvalue<'a>>)

Concatenate multiple values.

The values are cast to and treated as packed bit vectors, and the result is yet another packed bit vector. The lowest index corresponds to the left-most item in the concatenation, which is at the MSB end of the final packed bit vector.

Tuple Fields of Concat

0: Vec<&'a Lvalue<'a>>
Repeat(usize, &'a Lvalue<'a>)

Repeat a value multiple times.

The value is cast to and treated as a packed bit vector, and the result is yet another packed bit vector.

Tuple Fields of Repeat

0: usize1: &'a Lvalue<'a>
Error

An error occurred during lowering.

Implementations

Check whether the lvalue represents a lowering error tombstone.

Trait Implementations

Walk a visitor over the contents of self.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_lvalue_kind(self)
  • self.accept(visitor)
  • visitor.post_visit_lvalue_kind(self);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.