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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".