pub struct NodeDisposal { /* private fields */ }Expand description
Detached node identities and the resources that must outlive their unmount.
Implementations§
Source§impl NodeDisposal
impl NodeDisposal
Sourcepub fn new(nodes: Vec<(NodeId, u32)>) -> Self
pub fn new(nodes: Vec<(NodeId, u32)>) -> Self
Creates a disposal batch from node IDs and their current generations.
use cranpose_core::{Applier, MemoryApplier, Node, NodeDisposal};
struct Leaf;
impl Node for Leaf {}
let mut applier = MemoryApplier::new();
let id = applier.create(Box::new(Leaf));
let disposal = NodeDisposal::new(vec![(id, applier.node_generation(id))]);Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodeDisposal
impl !Send for NodeDisposal
impl !Sync for NodeDisposal
impl !UnwindSafe for NodeDisposal
impl Freeze for NodeDisposal
impl Unpin for NodeDisposal
impl UnsafeUnpin for NodeDisposal
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