[][src]Struct llhd::ArrayAggregate

pub struct ArrayAggregate { /* fields omitted */ }

An array aggregate value such as [42 x i64 1337].

Methods

impl ArrayAggregate[src]

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

Create a new array aggregate value.

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

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

Get the type of the array.

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

Get the elements of the array.

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

Get a mutable reference to the elements of the array.

Trait Implementations

impl Clone for ArrayAggregate[src]

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

Performs copy-assignment from source. Read more

impl From<ArrayAggregate> for AggregateKind[src]

impl Eq for ArrayAggregate[src]

impl PartialEq<ArrayAggregate> for ArrayAggregate[src]

impl Debug for ArrayAggregate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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, 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut 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.