ForeignType

Trait ForeignType 

Source
pub trait ForeignType {
    // Required method
    fn type_name() -> &'static str;

    // Provided method
    fn indirection_level() -> u32 { ... }
}
Expand description

Defines a type that has identical representation for both input and output directions.

Required Methods§

Source

fn type_name() -> &'static str

The name of the type.

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl ForeignType for c_void

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for bool

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for f32

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for f64

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for i8

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for i16

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for i32

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for i64

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for isize

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for u8

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for u16

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for u32

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for u64

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for ()

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl ForeignType for usize

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

impl<TPtr: ForeignType + ?Sized> ForeignType for *const TPtr

Source§

impl<TPtr: ForeignType + ?Sized> ForeignType for *mut TPtr

Source§

impl<TS: TypeSystem, I> ForeignType for Option<InterfacePtr<TS, I>>

Source§

fn type_name() -> &'static str

The name of the type.

Source§

fn indirection_level() -> u32

Implementors§