[][src]Struct llhd::value::StructValue

pub struct StructValue(pub Vec<Value>);

A struct value.

Implementations

impl StructValue[src]

pub fn new(values: Vec<Value>) -> Self[src]

Create a new struct.

pub fn zero<'a>(tys: impl IntoIterator<Item = &'a Type>) -> Self[src]

Create a new zero-valued struct.

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

Get the type of the value.

impl StructValue[src]

Slicing.

pub fn extract_field(&self, idx: usize) -> Value[src]

Extract a single field from the struct.

pub fn insert_field(&mut self, idx: usize, value: Value)[src]

Insert a field into the struct.

Trait Implementations

impl Clone for StructValue[src]

impl Debug for StructValue[src]

impl<'de> Deserialize<'de> for StructValue[src]

impl Display for StructValue[src]

impl Eq for StructValue[src]

impl From<StructValue> for Value[src]

impl PartialEq<StructValue> for StructValue[src]

impl Serialize for StructValue[src]

impl StructuralEq for StructValue[src]

impl StructuralPartialEq for StructValue[src]

Auto Trait Implementations

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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> ToString for T where
    T: Display + ?Sized
[src]

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.