[][src]Struct llhd::value::ArrayValue

pub struct ArrayValue(pub Vec<Value>);

An array value.

Methods

impl ArrayValue[src]

pub fn new_uniform(length: usize, value: Value) -> Self[src]

Create a new uniform array.

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

Create a new array.

pub fn zero(length: usize, ty: &Type) -> Self[src]

Create a new zero-valued array.

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

Get the type of the value.

impl ArrayValue[src]

Slicing.

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

Extract a single element from the array.

pub fn extract_slice(&self, off: usize, len: usize) -> ArrayValue[src]

Extract a slice of elements from the array.

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

Insert a single element into the array.

pub fn insert_slice(&mut self, off: usize, len: usize, value: &ArrayValue)[src]

Insert a slice of elements into the array.

Trait Implementations

impl Clone for ArrayValue[src]

impl Debug for ArrayValue[src]

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

impl Display for ArrayValue[src]

impl Eq for ArrayValue[src]

impl From<ArrayValue> for Value[src]

impl PartialEq<ArrayValue> for ArrayValue[src]

impl Serialize for ArrayValue[src]

impl StructuralEq for ArrayValue[src]

impl StructuralPartialEq for ArrayValue[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.