Trait TypeMethods

Source
pub trait TypeMethods: BackendTypes {
    // Required methods
    fn type_ptr(&self) -> Self::Type;
    fn type_ptr_sized_int(&self) -> Self::Type;
    fn type_int(&self, bits: u32) -> Self::Type;
    fn type_array(&self, ty: Self::Type, size: u32) -> Self::Type;
    fn type_bit_width(&self, ty: Self::Type) -> u32;
}

Required Methods§

Source

fn type_ptr(&self) -> Self::Type

Source

fn type_ptr_sized_int(&self) -> Self::Type

Source

fn type_int(&self, bits: u32) -> Self::Type

Source

fn type_array(&self, ty: Self::Type, size: u32) -> Self::Type

Source

fn type_bit_width(&self, ty: Self::Type) -> u32

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.

Implementors§