pub struct AdapterTap<'vertex, AdapterT>where
    AdapterT: Adapter<'vertex>,
    for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2>,{ /* private fields */ }

Implementations§

source§

impl<'vertex, AdapterT> AdapterTap<'vertex, AdapterT>where AdapterT: Adapter<'vertex>, for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2>,

source

pub fn new( adapter: AdapterT, tracer: Rc<RefCell<Trace<AdapterT::Vertex>>> ) -> Self

source

pub fn finish(self) -> Trace<AdapterT::Vertex>

Trait Implementations§

source§

impl<'vertex, AdapterT> Adapter<'vertex> for AdapterTap<'vertex, AdapterT>where AdapterT: Adapter<'vertex>, for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2>,

§

type Vertex = <AdapterT as Adapter<'vertex>>::Vertex

The type of vertices in the dataset this adapter queries. It’s frequently a good idea to use an Rc<…> type for cheaper cloning here.
source§

fn resolve_starting_vertices( &self, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveInfo ) -> VertexIterator<'vertex, Self::Vertex>

Produce an iterator of vertices for the specified starting edge. Read more
source§

fn resolve_property( &self, contexts: ContextIterator<'vertex, Self::Vertex>, type_name: &Arc<str>, property_name: &Arc<str>, resolve_info: &ResolveInfo ) -> ContextOutcomeIterator<'vertex, Self::Vertex, FieldValue>

Resolve the value of a vertex property over an iterator of query contexts. Read more
source§

fn resolve_neighbors( &self, contexts: ContextIterator<'vertex, Self::Vertex>, type_name: &Arc<str>, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveEdgeInfo ) -> ContextOutcomeIterator<'vertex, Self::Vertex, VertexIterator<'vertex, Self::Vertex>>

Resolve the neighboring vertices across an edge, for each query context in an iterator. Read more
source§

fn resolve_coercion( &self, contexts: ContextIterator<'vertex, Self::Vertex>, type_name: &Arc<str>, coerce_to_type: &Arc<str>, resolve_info: &ResolveInfo ) -> ContextOutcomeIterator<'vertex, Self::Vertex, bool>

Attempt to coerce vertices to a subtype, over an iterator of query contexts. Read more
source§

impl<'vertex, AdapterT> Clone for AdapterTap<'vertex, AdapterT>where AdapterT: Adapter<'vertex> + Clone, for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2> + Clone,

source§

fn clone(&self) -> AdapterTap<'vertex, AdapterT>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<'vertex, AdapterT> Debug for AdapterTap<'vertex, AdapterT>where AdapterT: Adapter<'vertex> + Debug, for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2> + Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'vertex, AdapterT> !RefUnwindSafe for AdapterTap<'vertex, AdapterT>

§

impl<'vertex, AdapterT> !Send for AdapterTap<'vertex, AdapterT>

§

impl<'vertex, AdapterT> !Sync for AdapterTap<'vertex, AdapterT>

§

impl<'vertex, AdapterT> Unpin for AdapterTap<'vertex, AdapterT>where AdapterT: Unpin,

§

impl<'vertex, AdapterT> !UnwindSafe for AdapterTap<'vertex, AdapterT>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.