Trait IntoCursorVec

Source
pub trait IntoCursorVec<T> {
    // Required method
    fn with_cursor<F, Z>(self, cursor_generator: F) -> Result<Vec<Edge<T>>>
       where F: Fn(&T) -> Z + 'static,
             Z: Serialize + DeserializeOwned;
}
Expand description

Trait to convert iterators into edges

Required Methods§

Source

fn with_cursor<F, Z>(self, cursor_generator: F) -> Result<Vec<Edge<T>>>
where F: Fn(&T) -> Z + 'static, Z: Serialize + DeserializeOwned,

Maps this iterator to include the opaque cursor with each item

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, Y> IntoCursorVec<T> for Y
where Y: IntoIterator<Item = T> + 'static,