pub trait Attribute: Debug + Copy {
type Value: DataType;
// Required method
fn id(&self) -> AttributeId;
}Expand description
Node attribute.
This is used to match the appropriate result types at compile time when reading attributes from nodes. See the following methods for details:
Required Associated Types§
Required Methods§
Sourcefn id(&self) -> AttributeId
fn id(&self) -> AttributeId
Gets attribute 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.