dioxus_lib::prelude

Trait SuperFrom

source
pub trait SuperFrom<T, M = ()> {
    // Required method
    fn super_from(_: T) -> Self;
}
Expand description

A enhanced version of the From trait that allows with more flexibility.

Required Methods§

source

fn super_from(_: T) -> Self

Convert from a type to another type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, O> SuperFrom<T> for O
where O: From<T>,