pub struct LocalSlot { /* private fields */ }
Implementations
sourceimpl LocalSlot
impl LocalSlot
sourcepub fn new_arg(name: String, val: TypedValue) -> Self
pub fn new_arg(name: String, val: TypedValue) -> Self
Create a local slot that holds a function argument
sourcepub fn new_tmp(name: String, ty: Type) -> Self
pub fn new_tmp(name: String, ty: Type) -> Self
Create a local slot that holds a function temporary
sourcepub fn get_value(&self) -> TypedValue
pub fn get_value(&self) -> TypedValue
Get the value held in this local slot. Panics if the slot does not hold a value
sourcepub fn put_value_override(&mut self, val: TypedValue)
pub fn put_value_override(&mut self, val: TypedValue)
Put the value held in this local slot. Override if the slot already holds a value
sourcepub fn put_value(&mut self, val: TypedValue)
pub fn put_value(&mut self, val: TypedValue)
Put the value held in this local slot. Panics if the slot already holds a value
sourcepub fn del_value(&mut self) -> TypedValue
pub fn del_value(&mut self) -> TypedValue
Delete the value held in this local slot. Panics if the slot does not hold a value
Trait Implementations
impl Eq for LocalSlot
impl StructuralEq for LocalSlot
impl StructuralPartialEq for LocalSlot
Auto Trait Implementations
impl RefUnwindSafe for LocalSlot
impl Send for LocalSlot
impl Sync for LocalSlot
impl Unpin for LocalSlot
impl UnwindSafe for LocalSlot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more