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(&self, var: ExpandElement)
pub fn insert(&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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)