Struct cubecl_core::frontend::VariablePool
source · pub struct VariablePool { /* private fields */ }
Implementations§
source§impl VariablePool
impl VariablePool
sourcepub fn reuse(&self, item: Item) -> Option<ExpandElement>
pub fn reuse(&self, item: Item) -> Option<ExpandElement>
Returns an old, not used anymore variable, if there exists one.
sourcepub fn insert(&mut self, var: ExpandElement)
pub fn insert(&mut self, var: ExpandElement)
Insert a new variable in the map, which is classified by Item
Trait Implementations§
source§impl Clone for VariablePool
impl Clone for VariablePool
source§fn clone(&self) -> VariablePool
fn clone(&self) -> VariablePool
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for VariablePool
impl Default for VariablePool
source§fn default() -> VariablePool
fn default() -> VariablePool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariablePool
impl !RefUnwindSafe for VariablePool
impl !Send for VariablePool
impl !Sync for VariablePool
impl Unpin for VariablePool
impl !UnwindSafe for VariablePool
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)