Skip to main content

Graph

Struct Graph 

Source
pub struct Graph<'s, D, G> { /* private fields */ }
Expand description

Full indirect closure of a historical catalog, including null references. Backlinks do not recurse or create reference-counted ownership cycles.

Implementations§

Source§

impl<'s, D: Copy + Eq, G: Copy + Eq> Graph<'s, D, G>

Source

pub fn stamp(&self) -> Stamp<D, G>

Immutable original file identity used for the complete closure.

Source

pub fn revision(&self) -> usize

Historical ordinal used for every indirect resolution.

Source

pub fn root(&self) -> GraphObject<'_, 's, D, G>

Actual historical catalog root, without cloning its parsed model.

§Panics

Panics if the completed graph loses its validated catalog owner.

Auto Trait Implementations§

§

impl<'s, D, G> !Freeze for Graph<'s, D, G>

§

impl<'s, D, G> !RefUnwindSafe for Graph<'s, D, G>

§

impl<'s, D, G> !Send for Graph<'s, D, G>

§

impl<'s, D, G> !Sync for Graph<'s, D, G>

§

impl<'s, D, G> !UnwindSafe for Graph<'s, D, G>

§

impl<'s, D, G> Forget for Graph<'s, D, G>

§

impl<'s, D, G> Unpin for Graph<'s, D, G>
where Stamp<D, G>: Unpin, OwnedVec<Node<'s, D, G>>: Unpin,

§

impl<'s, D, G> UnsafeUnpin for Graph<'s, D, G>
where Stamp<D, G>: UnsafeUnpin, OwnedVec<Node<'s, D, G>>: UnsafeUnpin,

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.