Skip to main content

FunctionLike

Trait FunctionLike 

Source
pub trait FunctionLike:
    Attributable
    + Info
    + Documentable {
    // Required methods
    fn throws(&self) -> bool;
    fn return_value(&self) -> &ReturnValue;
    fn parameters(&self) -> &Parameters;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§