pub struct IncludeEdge { /* private fields */ }Expand description
One requested include edge in traversal order.
Implementations§
Source§impl IncludeEdge
impl IncludeEdge
Sourcepub const fn parent(&self) -> &IncludeIdentity
pub const fn parent(&self) -> &IncludeIdentity
Returns the identity that declared the include.
Sourcepub const fn child(&self) -> &IncludeIdentity
pub const fn child(&self) -> &IncludeIdentity
Returns the identity supplied by the caller’s loader for the child.
Sourcepub const fn parent_node_index(&self) -> usize
pub const fn parent_node_index(&self) -> usize
Returns the occurrence index that declared this edge.
Sourcepub const fn child_node_index(&self) -> usize
pub const fn child_node_index(&self) -> usize
Returns the retained target occurrence index.
A cycle targets its existing active occurrence; every other successful edge targets the retained occurrence loaded for that request.
Sourcepub const fn request_index(&self) -> usize
pub const fn request_index(&self) -> usize
Returns the matching IncludeResolution::requests index.
Trait Implementations§
Source§impl Clone for IncludeEdge
impl Clone for IncludeEdge
Source§fn clone(&self) -> IncludeEdge
fn clone(&self) -> IncludeEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncludeEdge
impl Debug for IncludeEdge
impl Eq for IncludeEdge
Source§impl PartialEq for IncludeEdge
impl PartialEq for IncludeEdge
impl StructuralPartialEq for IncludeEdge
Auto Trait Implementations§
impl Freeze for IncludeEdge
impl RefUnwindSafe for IncludeEdge
impl Send for IncludeEdge
impl Sync for IncludeEdge
impl Unpin for IncludeEdge
impl UnsafeUnpin for IncludeEdge
impl UnwindSafe for IncludeEdge
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