pub trait InstallWith {
// Provided method
fn install_with(_: &mut Module) -> Result<(), ContextError> { ... }
}
Expand description
Trait to handle the installation of auxilliary functions for a type installed into a module.
Provided Methods§
Sourcefn install_with(_: &mut Module) -> Result<(), ContextError>
fn install_with(_: &mut Module) -> Result<(), ContextError>
Hook to install more things into the module.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
impl InstallWith for Ordering
Source§impl InstallWith for Option<Value>
impl InstallWith for Option<Value>
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for Result<Value, Value>
impl InstallWith for Result<Value, Value>
fn install_with(module: &mut Module) -> Result<(), ContextError>
impl InstallWith for bool
impl InstallWith for char
impl InstallWith for f64
impl InstallWith for i64
impl InstallWith for u64
Source§impl InstallWith for Error
impl InstallWith for Error
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for ParseCharError
impl InstallWith for ParseCharError
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for Error
impl InstallWith for Error
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for ParseFloatError
impl InstallWith for ParseFloatError
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for ParseIntError
impl InstallWith for ParseIntError
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for Utf8Error
impl InstallWith for Utf8Error
fn install_with(module: &mut Module) -> Result<(), ContextError>
Source§impl InstallWith for Error
Available on crate feature std
only.
impl InstallWith for Error
Available on crate feature
std
only.fn install_with(module: &mut Module) -> Result<(), ContextError>
Implementors§
impl InstallWith for ControlFlow
impl InstallWith for GeneratorState
impl InstallWith for FromUtf8Error
Available on crate feature
alloc
only.