#[non_exhaustive]
pub struct RustdocAdapter<'a> { /* private fields */ }

Implementations§

source§

impl<'a> RustdocAdapter<'a>

source

pub fn new( current_crate: &'a IndexedCrate<'a>, previous_crate: Option<&'a IndexedCrate<'a>> ) -> Self

source

pub fn schema() -> Schema

Trait Implementations§

source§

impl<'a> Adapter<'a> for RustdocAdapter<'a>

§

type Vertex = Vertex<'a>

The type of vertices in the dataset this adapter queries. Unless your intended vertex type is cheap to clone, consider wrapping it an Rc or Arc to make cloning it cheaper since that’s a fairly common operation when queries are evaluated.
source§

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>

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>>

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>

Attempt to coerce vertices to a subtype, as required by the query that’s being evaluated. 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> 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> 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, U> TryFrom<U> for T
where 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 T
where 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.