Trait linera_witty::WitType
source · pub trait WitType {
type Layout: Layout;
type Dependencies: RegisterWitTypes;
const SIZE: u32;
// Required methods
fn wit_type_name() -> Cow<'static, str>;
fn wit_type_declaration() -> Cow<'static, str>;
}
Expand description
A type that is representable by fundamental WIT types.
Required Associated Types§
sourcetype Dependencies: RegisterWitTypes
type Dependencies: RegisterWitTypes
Other WitType
s that this type depends on.
Required Associated Constants§
Required Methods§
sourcefn wit_type_name() -> Cow<'static, str>
fn wit_type_name() -> Cow<'static, str>
Generates the WIT type name for this type.
sourcefn wit_type_declaration() -> Cow<'static, str>
fn wit_type_declaration() -> Cow<'static, str>
Generates the WIT type declaration for this type.
Object Safety§
This trait is not object safe.