Skip to main content

ToTsType

Trait ToTsType 

Source
pub trait ToTsType {
    // Required method
    fn to_ts_type(&self) -> Result<TsType, TsTypeError>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToTsType for &Type

Source§

impl ToTsType for &str

Source§

impl ToTsType for String

Source§

impl ToTsType for Type

Implementors§