Skip to main content

UniqueNamespace

Trait UniqueNamespace 

Source
pub trait UniqueNamespace:
    CollectionMeta
    + Copy
    + FromBytes
    + IntoBytes
    + Immutable
    + Send
    + Sync
    + 'static {
    // Required methods
    fn from_row(row: UniqueRow) -> Self;
    fn row(&self) -> UniqueRow;
}
Expand description

Implemented only by unique_index!. The bound that keeps crate::armour::Db::open_unique_index from being aimed at an ordinary collection.

Required Methods§

Source

fn from_row(row: UniqueRow) -> Self

Source

fn row(&self) -> UniqueRow

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§