Skip to main content

DoubletsExt

Trait DoubletsExt 

Source
pub trait DoubletsExt<T: LinkReference>: Sized + Doublets<T> {
    // Required methods
    fn iter(
        &self,
    ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator;
    fn each_iter(
        &self,
        query: impl ToQuery<T>,
    ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator;
}
Expand description

Extension trait that adds iterator-based access to a Doublets store.

Automatically implemented for any type that implements Doublets.

Required Methods§

Source

fn iter( &self, ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator

Returns an iterator over all links in the store.

Source

fn each_iter( &self, query: impl ToQuery<T>, ) -> impl Iterator<Item = Link<T>> + ExactSizeIterator + DoubleEndedIterator

Returns an iterator over links matching query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: LinkReference, All: Doublets<T> + Sized> DoubletsExt<T> for All