Enum mentat::vocabulary::VocabularyCheck [] [src]

pub enum VocabularyCheck<'definition> {
    NotPresent,
    Present,
    PresentButNeedsUpdate {
        older_version: Vocabulary,
    },
    PresentButTooNew {
        newer_version: Vocabulary,
    },
    PresentButMissingAttributes {
        attributes: Vec<&'definition (Keyword, Attribute)>,
    },
}

This enum captures the various relationships between a particular vocabulary pair — one Definition and one Vocabulary, if present.

Variants

The provided definition is not already present in the store.

The provided definition is present in the store, and all of its attributes exist.

The provided definition is present in the store with an earlier version number.

Fields of PresentButNeedsUpdate

The provided definition is present in the store with a more recent version number.

Fields of PresentButTooNew

The provided definition is present in the store, but some of its attributes are not.

Fields of PresentButMissingAttributes

Trait Implementations

impl<'definition> Debug for VocabularyCheck<'definition>
[src]

Formats the value using the given formatter. Read more

impl<'definition> Eq for VocabularyCheck<'definition>
[src]

impl<'definition> PartialEq for VocabularyCheck<'definition>
[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<'definition> Send for VocabularyCheck<'definition>

impl<'definition> Sync for VocabularyCheck<'definition>