Skip to main content

DialectHandle

Trait DialectHandle 

Source
pub trait DialectHandle {
    // Required method
    fn into_dialect(self: Arc<Self>) -> Arc<dyn PlatformDialect> ⓘ;
}
Expand description

A dialect as a shared handle, so PlatformDialect::at_version can hand back the dialect it was called on.

Every dialect has it, through the implementation below; there is nothing to write.

Required Methods§

Source

fn into_dialect(self: Arc<Self>) -> Arc<dyn PlatformDialect> ⓘ

This dialect, as the shared handle the registry holds.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: PlatformDialect + 'static> DialectHandle for T