[−][src]Struct llhd::StructAggregate
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 From<StructAggregate> for AggregateKind
[src]
fn from(a: StructAggregate) -> AggregateKind
[src]
impl Eq for StructAggregate
[src]
impl PartialEq<StructAggregate> for StructAggregate
[src]
fn eq(&self, other: &StructAggregate) -> bool
[src]
fn ne(&self, other: &StructAggregate) -> bool
[src]
impl Clone for StructAggregate
[src]
fn clone(&self) -> StructAggregate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StructAggregate
[src]
Auto Trait Implementations
impl Send for StructAggregate
impl Sync for StructAggregate
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,