Skip to main content

EntityAttributes

Trait EntityAttributes 

Source
pub trait EntityAttributes: EntityDomain {
    // Required methods
    fn attributes<'a>(
        graphrecord: &'a GraphRecord,
        index: &Self::Index<'a>,
    ) -> Result<&'a AttributeMap, GraphRecordError>;
    fn attribute_cardinality(
        stats: &Stats<'_>,
        attribute: &GraphRecordAttribute,
    ) -> usize;
}

Required Methods§

Source

fn attributes<'a>( graphrecord: &'a GraphRecord, index: &Self::Index<'a>, ) -> Result<&'a AttributeMap, GraphRecordError>

Source

fn attribute_cardinality( stats: &Stats<'_>, attribute: &GraphRecordAttribute, ) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EntityAttributes for EdgeIndex

Source§

fn attributes<'a>( graphrecord: &'a GraphRecord, index: &Self::Index<'a>, ) -> Result<&'a AttributeMap, GraphRecordError>

Source§

fn attribute_cardinality( stats: &Stats<'_>, attribute: &GraphRecordAttribute, ) -> usize

Source§

impl EntityAttributes for NodeIndex

Source§

fn attributes<'a>( graphrecord: &'a GraphRecord, index: &Self::Index<'a>, ) -> Result<&'a AttributeMap, GraphRecordError>

Source§

fn attribute_cardinality( stats: &Stats<'_>, attribute: &GraphRecordAttribute, ) -> usize

Implementors§