Struct lovm2::prelude::Initialize [−][src]
Initialize complex objects (Dict
and List
), supports Expr
as arguments
Implementations
impl Initialize
[src]
pub fn new(base: Expr) -> Initialize
[src]
pub fn dict() -> Initialize
[src]
pub fn list() -> Initialize
[src]
pub fn add<T>(&mut self, val: T) where
T: Into<Expr>,
[src]
T: Into<Expr>,
pub fn add_by_key<T, U>(&mut self, key: T, val: U) where
T: Into<Expr>,
U: Into<Expr>,
[src]
T: Into<Expr>,
U: Into<Expr>,
Trait Implementations
impl Clone for Initialize
[src]
pub fn clone(&self) -> Initialize
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Initialize
[src]
impl From<Initialize> for Expr
[src]
pub fn from(init: Initialize) -> Expr
[src]
impl HirLowering for Initialize
[src]
pub fn lower<'hir, 'lir>(&'hir self, runtime: &mut HirLoweringRuntime<'lir>) where
'hir: 'lir,
[src]
'hir: 'lir,
Auto Trait Implementations
impl !RefUnwindSafe for Initialize
[src]
impl !Send for Initialize
[src]
impl !Sync for Initialize
[src]
impl Unpin for Initialize
[src]
impl !UnwindSafe for Initialize
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,