pub struct ErasedRuntimeNode { /* private fields */ }Expand description
Type-erased runtime node for storage in heterogeneous collections.
This wrapper allows storing RuntimeNode<T> for different T types
in a single collection (e.g., HashMap<Key, ErasedRuntimeNode>).
Implementations§
Source§impl ErasedRuntimeNode
impl ErasedRuntimeNode
Sourcepub fn new<T: Node + 'static>(runtime: RuntimeNode<T>) -> Self
pub fn new<T: Node + 'static>(runtime: RuntimeNode<T>) -> Self
Creates a new erased runtime node from a typed runtime node.
Sourcepub fn from_arc(node: Arc<dyn Node>) -> Self
pub fn from_arc(node: Arc<dyn Node>) -> Self
Creates a new erased runtime node from a type-erased schema node.
Sourcepub fn clear_value(&mut self)
pub fn clear_value(&mut self)
Clears the value.
Trait Implementations§
Source§impl Clone for ErasedRuntimeNode
impl Clone for ErasedRuntimeNode
Source§fn clone(&self) -> ErasedRuntimeNode
fn clone(&self) -> ErasedRuntimeNode
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ErasedRuntimeNode
impl !RefUnwindSafe for ErasedRuntimeNode
impl Send for ErasedRuntimeNode
impl Sync for ErasedRuntimeNode
impl Unpin for ErasedRuntimeNode
impl !UnwindSafe for ErasedRuntimeNode
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