pub trait Serializable: 'static {
    fn ident() -> TypeIdent;
    fn ty() -> Type;

    fn is_primitive() -> bool { ... }
    fn collect_types(types: &mut TypeMap) { ... }
}

Required Methods

The identifier of the type as defined in the protocol.

The type definition.

Provided Methods

Whether this type is a primitive.

Collects the Type of this type and its dependencies.

The default implementation is only suitable for types without dependencies.

Implementations on Foreign Types

Implementors