pub struct NodeRef(/* private fields */);
Expand description
An interior-ly mutable ref to a Node.
Implementations§
Source§impl NodeRef
impl NodeRef
pub fn new_top() -> Self
pub fn new_str(s: String) -> Self
Sourcepub fn new_with_edges<I>(edges: I) -> Result<Self, Err>
pub fn new_with_edges<I>(edges: I) -> Result<Self, Err>
Creates a NodeRef from a list of (name, noderef) features. Names CANNOT be dotted!
pub fn new_from_paths<I>(paths: I) -> Result<NodeRef, Err>where
I: IntoIterator<Item = Feature>,
pub fn deep_clone(&self) -> NodeRef
pub fn dereference(self: NodeRef) -> NodeRef
Trait Implementations§
impl Eq for NodeRef
Auto Trait Implementations§
impl Freeze for NodeRef
impl !RefUnwindSafe for NodeRef
impl !Send for NodeRef
impl !Sync for NodeRef
impl Unpin for NodeRef
impl !UnwindSafe for NodeRef
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