Skip to main content

AsHandleOrId

Trait AsHandleOrId 

Source
pub trait AsHandleOrId {
    // Required method
    fn match_case<T>(
        &self,
        case_id: impl FnOnce(&Id) -> T,
        case_handle: impl FnOnce(&Handle) -> T,
    ) -> T;
}

Required Methods§

Source

fn match_case<T>( &self, case_id: impl FnOnce(&Id) -> T, case_handle: impl FnOnce(&Handle) -> T, ) -> T

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.

Implementors§