Skip to main content

GraphNode

Struct GraphNode 

Source
pub struct GraphNode {
    pub id: Arc<str>,
    pub kind: Arc<str>,
    pub title: Arc<str>,
    pub parent: Option<NodeIx>,
    pub policy: NodePolicy,
    pub role: NodeRole,
    pub node: Arc<dyn Node>,
    pub doc: NodeDoc,
}
Expand description

A compiled node.

Fields§

§id: Arc<str>§kind: Arc<str>

Shared with every NodeStarted event, so starting a node copies no strings.

§title: Arc<str>§parent: Option<NodeIx>

Owning container, None for the root scope.

§policy: NodePolicy§role: NodeRole§node: Arc<dyn Node>§doc: NodeDoc

The source document (kept for introspection and tooling).

Trait Implementations§

Source§

impl Debug for GraphNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for GraphNode

§

impl !UnwindSafe for GraphNode

§

impl Forget for GraphNode

§

impl Freeze for GraphNode
where *const ArcInner<str> is !null: Freeze, PhantomData<ArcInner<str>>: Freeze, *const u8 is !null: Freeze, PhantomData<usize>: Freeze, PhantomData<Bucket<String, Value>>: Freeze, *const ArcInner<dyn Node> is !null: Freeze, PhantomData<ArcInner<dyn Node>>: Freeze, PhantomData<u8>: Freeze, PhantomData<Bucket<String, Value>>: Freeze,

§

impl Move for GraphNode

§

impl Send for GraphNode
where Arc<str>: Send, RawTable<usize>: Send, RawVecInner: Send, Arc<Vec<Value>>: Send, Arc<IndexMap<String, Value>>: Send, Arc<File>: Send, Arc<dyn Node>: Send,

§

impl Sync for GraphNode
where Arc<str>: Sync, RawTable<usize>: Sync, RawVecInner: Sync, Arc<Vec<Value>>: Sync, Arc<IndexMap<String, Value>>: Sync, Arc<File>: Sync, Arc<dyn Node>: Sync,

§

impl Unpin for GraphNode

§

impl UnsafeUnpin for GraphNode

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.