Skip to main content

NamespaceCursor

Trait NamespaceCursor 

Source
pub trait NamespaceCursor: PageCursor {
    // Required methods
    fn namespace_id(&self) -> &NamespaceId;
    fn last_key(&self) -> Option<&str>;
    fn key_prefix(&self) -> String;
}
Expand description

A cursor bound to one namespace keyspace.

Required Methods§

Source

fn namespace_id(&self) -> &NamespaceId

Namespace whose keyspace this cursor walks.

Source

fn last_key(&self) -> Option<&str>

Key the enumeration stopped at, or None at the start.

Source

fn key_prefix(&self) -> String

Prefix every key this cursor may name lies under.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§