Enum mentat_db::errors::CardinalityConflict [] [src]

pub enum CardinalityConflict {
    CardinalityOneAddConflict {
        e: Entid,
        a: Entid,
        vs: BTreeSet<TypedValue>,
    },
    AddRetractConflict {
        e: Entid,
        a: Entid,
        vs: BTreeSet<TypedValue>,
    },
}

Variants

A cardinality one attribute has multiple assertions [e a v1], [e a v2], ....

Fields of CardinalityOneAddConflict

A datom has been both asserted and retracted, like [:db/add e a v] and [:db/retract e a v].

Fields of AddRetractConflict

Trait Implementations

impl Clone for CardinalityConflict
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CardinalityConflict
[src]

Formats the value using the given formatter. Read more

impl Eq for CardinalityConflict
[src]

impl PartialEq for CardinalityConflict
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for CardinalityConflict

impl Sync for CardinalityConflict