pub struct Heap { /* private fields */ }Expand description
Stores an indirected Executable in a
Box for later delegation.
Implementations§
Source§impl Heap
impl Heap
Sourcepub fn new(delegate: Box<dyn Executable>) -> Self
pub fn new(delegate: Box<dyn Executable>) -> Self
Creates a new Heap with a given
Boxed Executable. # Examples
use roopes::prelude::*;
let my_executable =
executable::Heap::new(Box::new(executable::Lambda::new(|| {
println!("Hello World.");
})));
my_executable.execute();Trait Implementations§
Auto Trait Implementations§
impl Freeze for Heap
impl !RefUnwindSafe for Heap
impl !Send for Heap
impl !Sync for Heap
impl Unpin for Heap
impl !UnwindSafe for Heap
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