Trait Next

Source
pub(super) trait Next {
    // Required methods
    fn next(stream: &Stream) -> Option<Key>;
    fn set_next(stream: &mut Stream, key: Option<Key>);
    fn take_next(stream: &mut Stream) -> Option<Key>;
    fn is_queued(stream: &Stream) -> bool;
    fn set_queued(stream: &mut Stream, val: bool);
}

Required Methods§

Source

fn next(stream: &Stream) -> Option<Key>

Source

fn set_next(stream: &mut Stream, key: Option<Key>)

Source

fn take_next(stream: &mut Stream) -> Option<Key>

Source

fn is_queued(stream: &Stream) -> bool

Source

fn set_queued(stream: &mut Stream, val: bool)

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§