HasSemantics

Trait HasSemantics 

Source
pub trait HasSemantics {
    type Sem: Semantics;

    const SEMANTICS: Self::Sem;
}
Expand description

Class of types that have an associated value which type implements Semantics, defining vertex legit attributes.

Vertex attribute types can be associated with only one semantics.

Required Associated Constants§

Source

const SEMANTICS: Self::Sem

The aforementioned vertex semantics for the attribute type.

Required Associated Types§

Source

type Sem: Semantics

Type of the semantics.

See the Semantics trait for further information.

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§