Trait sql::query_model::attribute::core::Attribute[][src]

pub(crate) trait Attribute: Debug + 'static {
    fn attr_id(&self) -> &'static str;
fn requires(&self) -> Vec<Box<dyn Attribute>>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn derive(&self, model: &mut Model, box_id: BoxId); }
Expand description

A trait that defines the logic for deriving an attribute.

Required methods

A globally unique identifier for this attribute type.

A vector of attributes that need to be derived before this attribute.

A function that derives at a specific BoxId.

Trait Implementations

A naive Hash for attributes that delegates to the associated std::any::TypeId.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

A naive PartialEq implementation for Attribute trait objects that differentiates two attributes based on their std::any::TypeId.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

An evidence that the PartialEq implementation for Attribute is an equivalence relation.

Implementors