Skip to main content

Convert

Trait Convert 

Source
pub trait Convert {
    // Required method
    fn convert<From, To>(
        &self,
        from: From,
        fragment: impl Into<Fragment>,
    ) -> Result<Option<To>>
       where From: SafeConvert<To> + GetType,
             To: GetType;
}

Required Methods§

Source

fn convert<From, To>( &self, from: From, fragment: impl Into<Fragment>, ) -> Result<Option<To>>
where From: SafeConvert<To> + GetType, To: GetType,

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§