Struct trustfall_core::interpreter::trace::AdapterTap
source · pub struct AdapterTap<'vertex, AdapterT>where
AdapterT: Adapter<'vertex>,
for<'de2> AdapterT::Vertex: Clone + Debug + PartialEq + Eq + Serialize + 'vertex + Deserialize<'de2>,{ /* private fields */ }Implementations§
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>,
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
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>
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>
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>>
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>
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,
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>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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> 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