Skip to main content

Identifiable

Trait Identifiable 

Source
pub trait Identifiable<S: Schema>: Xylem<S> {
    type Scope: Xylem<S>;

    // Required method
    fn id(&self) -> Id<S, Self>;
}
Expand description

A trait for types that can be identified.

Required Associated Types§

Source

type Scope: Xylem<S>

The scope of the identifier namespace.

Use () for global identifiers.

Required Methods§

Source

fn id(&self) -> Id<S, Self>

Returns the identifier for this instance.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§