[−][src]Struct llhd::value::ArrayValue
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 From<ArrayValue> for Value
[src]
fn from(v: ArrayValue) -> Value
[src]
impl Clone for ArrayValue
[src]
fn clone(&self) -> ArrayValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ArrayValue
[src]
impl PartialEq<ArrayValue> for ArrayValue
[src]
fn eq(&self, other: &ArrayValue) -> bool
[src]
fn ne(&self, other: &ArrayValue) -> bool
[src]
impl Display for ArrayValue
[src]
impl Debug for ArrayValue
[src]
impl StructuralPartialEq for ArrayValue
[src]
impl StructuralEq for ArrayValue
[src]
impl Serialize for ArrayValue
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ArrayValue
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ArrayValue
impl Sync for ArrayValue
impl Unpin for ArrayValue
impl UnwindSafe for ArrayValue
impl RefUnwindSafe for ArrayValue
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,