[go: up one dir, main page]

Trait NullId

Source
pub trait NullId<ID> {
    // Required method
    fn null_id() -> ID;
}
Expand description

A trait that defines how to choose the null (or invalid) Id.

Required Methods§

Source

fn null_id() -> ID

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§