pub struct NodeInfo<'a> {
pub kind: ItemKind,
pub name: Option<&'a str>,
pub package: Option<PackageId>,
pub export: Option<&'a str>,
pub definition: bool,
}Expand description
Represents information about a node in a composition graph.
Fields§
§kind: ItemKindThe item kind of the node.
name: Option<&'a str>The optional name of the node.
package: Option<PackageId>The package associated with the node.
export: Option<&'a str>The export name of the node.
If the node is not exported, this field will be None.
definition: boolWhether or not the node is from a type definition.
Auto Trait Implementations§
impl<'a> Freeze for NodeInfo<'a>
impl<'a> RefUnwindSafe for NodeInfo<'a>
impl<'a> Send for NodeInfo<'a>
impl<'a> Sync for NodeInfo<'a>
impl<'a> Unpin for NodeInfo<'a>
impl<'a> UnwindSafe for NodeInfo<'a>
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