#[non_exhaustive]
pub struct NeighborInfo { /* private fields */ }
Expand description

Information about a neighboring vertex. Implements VertexInfo.

Trait Implementations§

source§

impl Clone for NeighborInfo

source§

fn clone(&self) -> NeighborInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NeighborInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for NeighborInfo

source§

fn eq(&self, other: &NeighborInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for NeighborInfo

source§

impl StructuralEq for NeighborInfo

source§

impl StructuralPartialEq for NeighborInfo

Auto Trait Implementations§

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<V> AsVertex<V> for Vwhere V: Debug + Clone,

source§

fn as_vertex(&self) -> Option<&V>

Dereference this value into a &V, if the value happens to contain a V. Read more
source§

fn into_vertex(self) -> Option<V>

Consume self and produce the contained V, if one was indeed present. 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
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
source§

impl<T> VertexInfo for Twhere T: InternalVertexInfo + __Sealed,

source§

fn vid(&self) -> Vid

The unique ID of the vertex this VertexInfo describes.
source§

fn coerced_to_type(&self) -> Option<&Arc<str>>

The type coercion (... on SomeType) applied by the query at this vertex, if any.
source§

fn required_properties(&self) -> Box<dyn Iterator<Item = RequiredProperty> + '_>

Return all properties required for the current vertex, including: output, filtered, and tagged properties. It’s guaranteed that each property will only show once in the iterator, so even if a property has been used as a filter and output, it will only show once. Read more
source§

fn statically_required_property( &self, property: &str ) -> Option<CandidateValue<FieldValue>>

Check whether the query demands this vertex property to have specific values: a single value, or one of a set or range of values. The candidate values are known statically: up-front, without executing any of the query. Read more
source§

fn dynamically_required_property( &self, property: &str ) -> Option<DynamicallyResolvedValue<'_>>

Check whether the query demands this vertex property to have specific values: a single value, or one of a set or range of values. The candidate values are only known dynamically i.e. require some of the query to have already been executed at the point when this method is called. Read more
source§

fn edges_with_name<'a>( &'a self, name: &'a str ) -> Box<dyn Iterator<Item = EdgeInfo> + 'a>

Returns an iterator of all not-yet-resolved edges by that name originating from this vertex. Read more
source§

fn mandatory_edges_with_name<'a>( &'a self, name: &'a str ) -> Box<dyn Iterator<Item = EdgeInfo> + 'a>

Returns an iterator of all not-yet-resolved edges by that name that are mandatory: this vertex must contain the edge, or its result set will be discarded. Read more
source§

fn first_mandatory_edge(&self, name: &str) -> Option<EdgeInfo>

Returns info for the first not-yet-resolved edge by the given name that is mandatory: this vertex must contain the edge, or its result set will be discarded. Read more
source§

fn first_edge(&self, name: &str) -> Option<EdgeInfo>

Returns info for the first not-yet-resolved edge by the given name. Read more