[][src]Struct llhd::StructAggregate

pub struct StructAggregate { /* fields omitted */ }

A struct aggregate value such as {i32 42, i64 9001}.

Methods

impl StructAggregate[src]

pub fn new(ty: Type, fields: Vec<ValueRef>) -> StructAggregate[src]

Create a new struct aggregate value.

Constructs a new struct aggregate value with the given fields. The length of fields must match the number of fields in ty, and ty must be a struct type.

pub fn ty(&self) -> &Type[src]

Get the type of the struct.

pub fn fields(&self) -> &[ValueRef][src]

Get the fields of the struct.

pub fn fields_mut(&mut self) -> &mut [ValueRef][src]

Get a mutable reference to the fields of the struct.

Trait Implementations

impl Eq for StructAggregate[src]

impl Clone for StructAggregate[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<StructAggregate> for StructAggregate[src]

impl From<StructAggregate> for AggregateKind[src]

impl Debug for StructAggregate[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]