pub struct ExternalReference { /* private fields */ }Expand description
A reference pointing to some node in a different node manager.
Implementations§
Source§impl ExternalReference
impl ExternalReference
Sourcepub fn new(
target_id: ExpandedNodeId,
reference_type_id: NodeId,
direction: ReferenceDirection,
) -> ExternalReference
pub fn new( target_id: ExpandedNodeId, reference_type_id: NodeId, direction: ReferenceDirection, ) -> ExternalReference
Create a new external reference.
Sourcepub fn into_reference(self, meta: NodeMetadata) -> ReferenceDescription
pub fn into_reference(self, meta: NodeMetadata) -> ReferenceDescription
Create a reference description from this and a NodeMetadata object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExternalReference
impl RefUnwindSafe for ExternalReference
impl Send for ExternalReference
impl Sync for ExternalReference
impl Unpin for ExternalReference
impl UnsafeUnpin for ExternalReference
impl UnwindSafe for ExternalReference
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