#[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>
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<V: AsVertex<Self::Vertex> + 'a>(
&self,
contexts: ContextIterator<'a, V>,
type_name: &Arc<str>,
property_name: &Arc<str>,
_resolve_info: &ResolveInfo,
) -> ContextOutcomeIterator<'a, V, FieldValue>
fn resolve_property<V: AsVertex<Self::Vertex> + 'a>( &self, contexts: ContextIterator<'a, V>, type_name: &Arc<str>, property_name: &Arc<str>, _resolve_info: &ResolveInfo, ) -> ContextOutcomeIterator<'a, V, FieldValue>
Resolve a property required by the query that’s being evaluated. Read more
source§fn resolve_neighbors<V: AsVertex<Self::Vertex> + 'a>(
&self,
contexts: ContextIterator<'a, V>,
type_name: &Arc<str>,
edge_name: &Arc<str>,
parameters: &EdgeParameters,
resolve_info: &ResolveEdgeInfo,
) -> ContextOutcomeIterator<'a, V, VertexIterator<'a, Self::Vertex>>
fn resolve_neighbors<V: AsVertex<Self::Vertex> + 'a>( &self, contexts: ContextIterator<'a, V>, type_name: &Arc<str>, edge_name: &Arc<str>, parameters: &EdgeParameters, resolve_info: &ResolveEdgeInfo, ) -> ContextOutcomeIterator<'a, V, VertexIterator<'a, Self::Vertex>>
Resolve the neighboring vertices across an edge. Read more
source§fn resolve_coercion<V: AsVertex<Self::Vertex> + 'a>(
&self,
contexts: ContextIterator<'a, V>,
type_name: &Arc<str>,
coerce_to_type: &Arc<str>,
_resolve_info: &ResolveInfo,
) -> ContextOutcomeIterator<'a, V, bool>
fn resolve_coercion<V: AsVertex<Self::Vertex> + 'a>( &self, contexts: ContextIterator<'a, V>, type_name: &Arc<str>, coerce_to_type: &Arc<str>, _resolve_info: &ResolveInfo, ) -> ContextOutcomeIterator<'a, V, bool>
Attempt to coerce vertices to a subtype, as required by the query that’s being evaluated. Read more
Auto Trait Implementations§
impl<'a> Freeze for RustdocAdapter<'a>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more