#[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. 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>

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>

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

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

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

Attempt to coerce vertices to a subtype, over an iterator of query contexts. 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 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, 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.