pub trait CandidType {
// Required methods
fn _ty() -> Type;
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>
where S: Serializer;
// Provided methods
fn ty() -> Type { ... }
fn id() -> TypeId { ... }
}
Required Methods§
fn _ty() -> Type
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>where
S: Serializer,
Provided Methods§
Object Safety§
This trait is not object safe.