Struct mentat::vocabulary::SimpleVocabularySource [] [src]

pub struct SimpleVocabularySource {
    pub definitions: Vec<Definition>,
    pub pre: Option<fn(_: &mut InProgress) -> Result<()>>,
    pub post: Option<fn(_: &mut InProgress) -> Result<()>>,
}
[]

A convenience struct to package simple pre and post functions with a collection of vocabulary Definitions.

Fields

Methods

impl SimpleVocabularySource
[src]
[]

Trait Implementations

impl VocabularySource for SimpleVocabularySource
[src]
[+]

[]

Called before the supplied Definitions are transacted. Do not commit the InProgress. If this function returns Err, the entire vocabulary operation will fail. Read more

[]

Called after the supplied Definitions are transacted. Do not commit the InProgress. If this function returns Err, the entire vocabulary operation will fail. Read more

Important traits for Vec<u8>
[]

Called to obtain the list of Definitions to install. This will be called before pre.

Auto Trait Implementations

impl Send for SimpleVocabularySource

impl Sync for SimpleVocabularySource