Skip to main content

CallableFetch

Trait CallableFetch 

Source
pub trait CallableFetch<T>: Send + Sync {
    // Required method
    fn fetch(&self) -> T;
}
Expand description

A trait for simple types that can be used as parameters in callable functions.

Required Methods§

Source

fn fetch(&self) -> T

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§