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
NotPresent
The provided definition is not already present in the store.
Present
The provided definition is present in the store, and all of its attributes exist.
PresentButNeedsUpdate
The provided definition is present in the store with an earlier version number.
Fields of PresentButNeedsUpdate
older_version: Vocabulary |
PresentButTooNew
The provided definition is present in the store with a more recent version number.
Fields of PresentButTooNew
newer_version: Vocabulary |
PresentButMissingAttributes
The provided definition is present in the store, but some of its attributes are not.
Fields of PresentButMissingAttributes
attributes: Vec<&'definition (Keyword, Attribute)> |
Trait Implementations
impl<'definition> Debug for VocabularyCheck<'definition>
[src]
impl<'definition> Debug for VocabularyCheck<'definition>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'definition> Eq for VocabularyCheck<'definition>
[src]
impl<'definition> Eq for VocabularyCheck<'definition>
impl<'definition> PartialEq for VocabularyCheck<'definition>
[src]
impl<'definition> PartialEq for VocabularyCheck<'definition>
fn eq(&self, __arg_0: &VocabularyCheck<'definition>) -> bool
[src]
fn eq(&self, __arg_0: &VocabularyCheck<'definition>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &VocabularyCheck<'definition>) -> bool
[src]
fn ne(&self, __arg_0: &VocabularyCheck<'definition>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<'definition> Send for VocabularyCheck<'definition>
impl<'definition> Send for VocabularyCheck<'definition>
impl<'definition> Sync for VocabularyCheck<'definition>
impl<'definition> Sync for VocabularyCheck<'definition>