Skip to main content

RustTypeInfo

Trait RustTypeInfo 

Source
pub trait RustTypeInfo {
    // Required methods
    fn is_prim(&self) -> Result<bool, Error>;
    fn is_pointer(&self) -> Result<bool, Error>;
    fn is_parameter(&self) -> Result<bool, Error>;
    fn is_branded(&self) -> Result<bool, Error>;
    fn type_string(
        &self,
        ctx: &GeneratorContext<'_>,
        module: Leaf,
    ) -> Result<String, Error>;
}

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 RustTypeInfo for Reader<'_>

Implementors§