Skip to main content

DetailSource

Trait DetailSource 

Source
pub trait DetailSource: Send + Sync {
    // Required method
    fn load(&self, path: &str) -> Option<Arc<Detail>>;
}
Expand description

詳しい形の読み手: STEP のファイル → 詳しい形(読めなければ None)

Required Methods§

Source

fn load(&self, path: &str) -> Option<Arc<Detail>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn(&str) -> Option<Arc<Detail>> + Send + Sync> DetailSource for F