pub struct DynamicTypeBuilder { /* private fields */ }Expand description
Builds a DynamicType (DynamicTypeBuilder, 7.5.2.9).
Implementations§
Source§impl DynamicTypeBuilder
impl DynamicTypeBuilder
Sourcepub fn get_descriptor(&self) -> &TypeDescriptor
pub fn get_descriptor(&self) -> &TypeDescriptor
get_descriptor.
Sourcepub fn get_member_count(&self) -> u32
pub fn get_member_count(&self) -> u32
get_member_count: the members added.
Sourcepub fn add_member(&mut self, member: MemberDescriptor) -> Result<(), Error>
pub fn add_member(&mut self, member: MemberDescriptor) -> Result<(), Error>
add_member: a member of a struct or union, a literal of an enum,
a flag of a bitmask. Its index is its position. Fails for other
kinds, or when the name or the ID is taken.
Sourcepub fn build(self) -> Result<DynamicType, Error>
pub fn build(self) -> Result<DynamicType, Error>
build.
Trait Implementations§
Source§impl Clone for DynamicTypeBuilder
impl Clone for DynamicTypeBuilder
Source§fn clone(&self) -> DynamicTypeBuilder
fn clone(&self) -> DynamicTypeBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicTypeBuilder
impl Debug for DynamicTypeBuilder
Source§impl PartialEq for DynamicTypeBuilder
impl PartialEq for DynamicTypeBuilder
impl StructuralPartialEq for DynamicTypeBuilder
Auto Trait Implementations§
impl Forget for DynamicTypeBuilder
impl Freeze for DynamicTypeBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<SequenceType> is !null: Freeze,
PhantomData<ArcInner<SequenceType>>: Freeze,
*const ArcInner<ArrayType> is !null: Freeze,
PhantomData<ArcInner<ArrayType>>: Freeze,
*const ArcInner<MapType> is !null: Freeze,
PhantomData<ArcInner<MapType>>: Freeze,
*const ArcInner<AliasType> is !null: Freeze,
PhantomData<ArcInner<AliasType>>: Freeze,
*const ArcInner<EnumType> is !null: Freeze,
PhantomData<ArcInner<EnumType>>: Freeze,
*const ArcInner<BitmaskType> is !null: Freeze,
PhantomData<ArcInner<BitmaskType>>: Freeze,
*const ArcInner<StructType> is !null: Freeze,
PhantomData<ArcInner<StructType>>: Freeze,
*const ArcInner<UnionType> is !null: Freeze,
PhantomData<ArcInner<UnionType>>: Freeze,
*const ArcInner<BitsetType> is !null: Freeze,
PhantomData<ArcInner<BitsetType>>: Freeze,
*const ArcInner<AnnotationType> is !null: Freeze,
PhantomData<ArcInner<AnnotationType>>: Freeze,
*const ArcInner<ForwardType> is !null: Freeze,
PhantomData<ArcInner<ForwardType>>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<MemberDescriptor>: Freeze,
impl Move for DynamicTypeBuilder
impl RefUnwindSafe for DynamicTypeBuilder
impl Send for DynamicTypeBuilder
impl Sync for DynamicTypeBuilder
impl Unpin for DynamicTypeBuilder
impl UnsafeUnpin for DynamicTypeBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<SequenceType> is !null: UnsafeUnpin,
PhantomData<ArcInner<SequenceType>>: UnsafeUnpin,
*const ArcInner<ArrayType> is !null: UnsafeUnpin,
PhantomData<ArcInner<ArrayType>>: UnsafeUnpin,
*const ArcInner<MapType> is !null: UnsafeUnpin,
PhantomData<ArcInner<MapType>>: UnsafeUnpin,
*const ArcInner<AliasType> is !null: UnsafeUnpin,
PhantomData<ArcInner<AliasType>>: UnsafeUnpin,
*const ArcInner<EnumType> is !null: UnsafeUnpin,
PhantomData<ArcInner<EnumType>>: UnsafeUnpin,
*const ArcInner<BitmaskType> is !null: UnsafeUnpin,
PhantomData<ArcInner<BitmaskType>>: UnsafeUnpin,
*const ArcInner<StructType> is !null: UnsafeUnpin,
PhantomData<ArcInner<StructType>>: UnsafeUnpin,
*const ArcInner<UnionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<UnionType>>: UnsafeUnpin,
*const ArcInner<BitsetType> is !null: UnsafeUnpin,
PhantomData<ArcInner<BitsetType>>: UnsafeUnpin,
*const ArcInner<AnnotationType> is !null: UnsafeUnpin,
PhantomData<ArcInner<AnnotationType>>: UnsafeUnpin,
*const ArcInner<ForwardType> is !null: UnsafeUnpin,
PhantomData<ArcInner<ForwardType>>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<MemberDescriptor>: UnsafeUnpin,
impl UnwindSafe for DynamicTypeBuilderwhere
RawVecInner: UnwindSafe,
Arc<SequenceType>: UnwindSafe,
Arc<ArrayType>: UnwindSafe,
Arc<MapType>: UnwindSafe,
Arc<AliasType>: UnwindSafe,
Arc<EnumType>: UnwindSafe,
Arc<BitmaskType>: UnwindSafe,
Arc<StructType>: UnwindSafe,
Arc<UnionType>: UnwindSafe,
Arc<BitsetType>: UnwindSafe,
Arc<AnnotationType>: UnwindSafe,
Arc<ForwardType>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more