Skip to main content

GraphObject

Struct GraphObject 

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

A node inside the actual graph owner. Resolution cannot substitute a node from another revision or silently use a newer generation’s definition.

Implementations§

Source§

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

Source

pub fn direct(self) -> Object<'a, 's, D, G>

Direct value metadata and paid scalar queries use the same object core.

§Panics

Panics if an internally issued graph object loses its owning reading.

Source

pub fn identity(self) -> (u64, u16)

Original indirect owner identity, independent of this direct node.

Source

pub fn resolved(self, operation: &impl Work) -> Result<Option<Self>>

Resolves a direct reference using the already completed graph index. No I/O, parsing, fallback generation or retained-cache mutation occurs.

§Panics

Panics if the completed reference-closure index omits an admitted reference.

Source

pub fn get(self, key: &[u8], operation: &impl Work) -> Result<Option<Self>>

Selects a dictionary field and resolves its actual original reference.

Source

pub fn members<'q>( self, operation: &'q impl Work, ) -> Option<GraphMembers<'a, 's, 'q, D, G>>
where 's: 'q,

Visits direct array members with current admission before every step. Returned objects can be resolved separately through this same graph.

Trait Implementations§

Source§

impl<'a, 's, D: Clone, G: Clone> Clone for GraphObject<'a, 's, D, G>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, 's, D: Copy, G: Copy> Copy for GraphObject<'a, 's, D, G>

Auto Trait Implementations§

§

impl<'a, 's, D, G> !RefUnwindSafe for GraphObject<'a, 's, D, G>

§

impl<'a, 's, D, G> !Send for GraphObject<'a, 's, D, G>

§

impl<'a, 's, D, G> !Sync for GraphObject<'a, 's, D, G>

§

impl<'a, 's, D, G> !UnwindSafe for GraphObject<'a, 's, D, G>

§

impl<'a, 's, D, G> Freeze for GraphObject<'a, 's, D, G>
where &'a Graph<'s, D, G>: Freeze,

§

impl<'a, 's, D, G> Unpin for GraphObject<'a, 's, D, G>
where &'a Graph<'s, D, G>: Unpin,

§

impl<'a, 's, D, G> UnsafeUnpin for GraphObject<'a, 's, D, G>
where &'a Graph<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.