twizzler_abi::marker

Trait BaseType

source
pub trait BaseType {
    // Required methods
    fn init<T>(_t: T) -> Self;
    fn tags() -> &'static [(BaseVersion, BaseTag)];
}
Expand description

Trait that all base types must implement.

Required Methods§

source

fn init<T>(_t: T) -> Self

Construct a new base type.

source

fn tags() -> &'static [(BaseVersion, BaseTag)]

Returns a list of valid tags and versions for this type.

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§