pub struct DynamicTypeBuilderFactory;Expand description
Makes DynamicTypeBuilders (DynamicTypeBuilderFactory, 7.5.2.2).
Implementations§
Source§impl DynamicTypeBuilderFactory
impl DynamicTypeBuilderFactory
Sourcepub fn get_primitive_type(kind: u8) -> Option<DynamicType>
pub fn get_primitive_type(kind: u8) -> Option<DynamicType>
get_primitive_type: None for a kind that is not primitive.
Sourcepub fn create_type(
descriptor: TypeDescriptor,
) -> Result<DynamicTypeBuilder, Error>
pub fn create_type( descriptor: TypeDescriptor, ) -> Result<DynamicTypeBuilder, Error>
create_type.
Sourcepub fn create_type_copy(ty: &DynamicType) -> Result<DynamicTypeBuilder, Error>
pub fn create_type_copy(ty: &DynamicType) -> Result<DynamicTypeBuilder, Error>
create_type_copy.
Sourcepub fn create_type_w_type_object(
type_object: &TypeObject,
registry: &TypeRegistry,
) -> Result<DynamicTypeBuilder, Error>
pub fn create_type_w_type_object( type_object: &TypeObject, registry: &TypeRegistry, ) -> Result<DynamicTypeBuilder, Error>
create_type_w_type_object: the type a TypeObject describes. The
TypeObjects of the types it uses must be in registry. A COMPLETE
TypeObject gives the names of the type and its members; a MINIMAL
one only their hashes, so the type is named after its
TypeIdentifier and the members m<id>.
Sourcepub fn create_type_w_type_identifier(
id: &TypeIdentifier,
registry: &TypeRegistry,
) -> Result<DynamicType, Error>
pub fn create_type_w_type_identifier( id: &TypeIdentifier, registry: &TypeRegistry, ) -> Result<DynamicType, Error>
The type a TypeIdentifier identifies, with the TypeObjects in
registry (see Self::create_type_w_type_object).
Sourcepub fn create_string_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
pub fn create_string_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
create_string_type: a string of at most bound characters (0
for none).
Sourcepub fn create_wstring_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
pub fn create_wstring_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
create_wstring_type.
Sourcepub fn create_sequence_type(
element: &DynamicType,
bound: u32,
) -> Result<DynamicTypeBuilder, Error>
pub fn create_sequence_type( element: &DynamicType, bound: u32, ) -> Result<DynamicTypeBuilder, Error>
create_sequence_type.
Sourcepub fn create_array_type(
element: &DynamicType,
bound: &[u32],
) -> Result<DynamicTypeBuilder, Error>
pub fn create_array_type( element: &DynamicType, bound: &[u32], ) -> Result<DynamicTypeBuilder, Error>
create_array_type.
Sourcepub fn create_map_type(
key: &DynamicType,
element: &DynamicType,
bound: u32,
) -> Result<DynamicTypeBuilder, Error>
pub fn create_map_type( key: &DynamicType, element: &DynamicType, bound: u32, ) -> Result<DynamicTypeBuilder, Error>
create_map_type.
Sourcepub fn create_bitmask_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
pub fn create_bitmask_type(bound: u32) -> Result<DynamicTypeBuilder, Error>
create_bitmask_type: an anonymous bitmask of bound bits, whose
flags are then added as members.
Trait Implementations§
Source§impl Clone for DynamicTypeBuilderFactory
impl Clone for DynamicTypeBuilderFactory
Source§fn clone(&self) -> DynamicTypeBuilderFactory
fn clone(&self) -> DynamicTypeBuilderFactory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more