#[non_exhaustive]pub struct RustdocAdapter<'a> { /* private fields */ }
Implementations§
source§impl<'a> RustdocAdapter<'a>
impl<'a> RustdocAdapter<'a>
pub fn new( current_crate: &'a IndexedCrate<'a>, previous_crate: Option<&'a IndexedCrate<'a>> ) -> Self
pub fn schema() -> Schema
Trait Implementations§
source§impl<'a> Adapter<'a> for RustdocAdapter<'a>
impl<'a> Adapter<'a> for RustdocAdapter<'a>
§type Vertex = Vertex<'a>
type Vertex = Vertex<'a>
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<'a, Self::Vertex>
fn resolve_starting_vertices( &self, edge_name: &Arc<str>, _parameters: &EdgeParameters, _resolve_info: &ResolveInfo ) -> VertexIterator<'a, Self::Vertex>
Produce an iterator of vertices for the specified starting edge. Read more
source§fn resolve_property(
&self,
contexts: ContextIterator<'a, Self::Vertex>,
type_name: &Arc<str>,
property_name: &Arc<str>,
_resolve_info: &ResolveInfo
) -> ContextOutcomeIterator<'a, Self::Vertex, FieldValue>
fn resolve_property( &self, contexts: ContextIterator<'a, Self::Vertex>, type_name: &Arc<str>, property_name: &Arc<str>, _resolve_info: &ResolveInfo ) -> ContextOutcomeIterator<'a, 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<'a, Self::Vertex>,
type_name: &Arc<str>,
edge_name: &Arc<str>,
parameters: &EdgeParameters,
resolve_info: &ResolveEdgeInfo
) -> ContextOutcomeIterator<'a, Self::Vertex, VertexIterator<'a, Self::Vertex>>
fn resolve_neighbors( &self, contexts: ContextIterator<'a, Self::Vertex>, type_name: &Arc<str>, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveEdgeInfo ) -> ContextOutcomeIterator<'a, Self::Vertex, VertexIterator<'a, Self::Vertex>>
Resolve the neighboring vertices across an edge, for each query context in an iterator. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RustdocAdapter<'a>
impl<'a> Send for RustdocAdapter<'a>
impl<'a> Sync for RustdocAdapter<'a>
impl<'a> Unpin for RustdocAdapter<'a>
impl<'a> UnwindSafe for RustdocAdapter<'a>
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