rune/module/
install_with.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::ContextError;

use super::Module;

/// Trait to handle the installation of auxilliary functions for a type
/// installed into a module.
pub trait InstallWith {
    /// Hook to install more things into the module.
    fn install_with(_: &mut Module) -> Result<(), ContextError> {
        Ok(())
    }
}