pub struct HybridAllocator { /* private fields */ }
Expand description
Hybrid allocator. Creates immutable local bindings for intermediates, and falls back to
ReusingAllocator
for mutable variables.
Trait Implementations§
Source§impl Default for HybridAllocator
impl Default for HybridAllocator
Source§fn default() -> HybridAllocator
fn default() -> HybridAllocator
Returns the “default value” for a type. Read more
Source§impl LocalAllocator for HybridAllocator
impl LocalAllocator for HybridAllocator
Source§fn create_local_variable(
&self,
root: Rc<RefCell<Scope>>,
scope: Rc<RefCell<Scope>>,
item: Item,
) -> ExpandElement
fn create_local_variable( &self, root: Rc<RefCell<Scope>>, scope: Rc<RefCell<Scope>>, item: Item, ) -> ExpandElement
Creates a local variable that can be (re)assigned
Auto Trait Implementations§
impl !Freeze for HybridAllocator
impl !RefUnwindSafe for HybridAllocator
impl !Send for HybridAllocator
impl !Sync for HybridAllocator
impl Unpin for HybridAllocator
impl !UnwindSafe for HybridAllocator
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