Trait capnpc::codegen_types::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>;
}