Trait conch_runtime::env::FunctionEnvironment [] [src]

pub trait FunctionEnvironment {
    type FnName;
    type Fn;
    fn function(&self, name: &Self::FnName) -> Option<&Self::Fn>;
fn set_function(&mut self, name: Self::FnName, func: Self::Fn); fn has_function(&self, name: &Self::FnName) -> bool { ... } }

An interface for setting and getting shell functions.

Associated Types

The name to be associated with a function.

The type of the function.

Required Methods

Get a particularly named function if it was registered.

Register a shell function with a given name.

Provided Methods

Check if a particularly named function was registered.

Implementations on Foreign Types

impl<'a, T: ?Sized + FunctionEnvironment> FunctionEnvironment for &'a mut T
[src]

[src]

[src]

[src]

Implementors