Trait MyFrom

Source
pub trait MyFrom<T> {
    // Required method
    fn myfrom(s: T) -> Self;
}

Required Methods§

Source

fn myfrom(s: T) -> Self

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.

Implementations on Foreign Types§

Source§

impl MyFrom<&&str> for KString

Source§

fn myfrom(s: &&str) -> Self

Source§

impl MyFrom<&str> for KString

Source§

fn myfrom(s: &str) -> Self

Source§

impl MyFrom<&KString> for KString

Source§

fn myfrom(s: &KString) -> Self

Source§

impl MyFrom<&String> for KString

Source§

fn myfrom(s: &String) -> Self

Source§

impl MyFrom<usize> for KString

Source§

fn myfrom(val: usize) -> Self

Source§

impl MyFrom<KString> for KString

Source§

fn myfrom(s: KString) -> Self

Source§

impl MyFrom<String> for KString

Source§

fn myfrom(s: String) -> Self

Source§

impl<'s> MyFrom<&&'s str> for &'s str

Source§

fn myfrom(s: &&'s str) -> Self

Source§

impl<'s> MyFrom<&'s str> for &'s str

Source§

fn myfrom(s: &'s str) -> Self

Source§

impl<'s> MyFrom<&'s KString> for &'s str

Source§

fn myfrom(s: &'s KString) -> Self

Source§

impl<'s> MyFrom<&'s String> for &'s str

Source§

fn myfrom(s: &'s String) -> Self

Source§

impl<'t> MyFrom<Cow<'t, str>> for KString

Source§

fn myfrom(s: Cow<'t, str>) -> Self

Implementors§