Trait Attribute

Source
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§

Source

type Value: DataType

Attribute data type.

Required Methods§

Source

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.

Implementors§