[][src]Trait yttrium_key_base::Key

pub trait Key {
    pub fn get_key_info(&self) -> &KeyInfo;
pub fn get_key_function(
        &self
    ) -> fn(parameter: &[String], environment: &mut Environment<'_>) -> Result<String, String>; }

Trait used for implementing keys

Required methods

pub fn get_key_info(&self) -> &KeyInfo[src]

Returns a reference to a KeyInfo describing the key

pub fn get_key_function(
    &self
) -> fn(parameter: &[String], environment: &mut Environment<'_>) -> Result<String, String>
[src]

Returns the key function that gets called during interpretation

Loading content...

Implementors

Loading content...