pub struct TypeLibrary {
pub name: String,
pub types: Vec<TypeDef>,
}Expand description
Container fuer 1+ Type-Definitionen aus einem <types>-Block.
Spec §7.3.3.4: ein DDS-XML-Dokument darf mehrere <types>-Top-Level-
Elemente fuehren. Jeder Block wird als eine TypeLibrary mit
optionalem Namen (Annotation, nicht Spec-Pflicht) modelliert.
Fields§
§name: StringOptionaler Library-Name (z.B. <types name="Lib1">); Spec laesst
das Attribut zu, ohne es verpflichtend zu machen.
types: Vec<TypeDef>Type-Definitionen in Dokument-Reihenfolge. Module sind als
TypeDef::Module(ModuleEntry) eingebettet (nested).
Implementations§
Trait Implementations§
Source§impl Clone for TypeLibrary
impl Clone for TypeLibrary
Source§fn clone(&self) -> TypeLibrary
fn clone(&self) -> TypeLibrary
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 TypeLibrary
impl Debug for TypeLibrary
Source§impl Default for TypeLibrary
impl Default for TypeLibrary
Source§fn default() -> TypeLibrary
fn default() -> TypeLibrary
Returns the “default value” for a type. Read more
Source§impl PartialEq for TypeLibrary
impl PartialEq for TypeLibrary
Source§fn eq(&self, other: &TypeLibrary) -> bool
fn eq(&self, other: &TypeLibrary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TypeLibrary
impl StructuralPartialEq for TypeLibrary
Auto Trait Implementations§
impl Freeze for TypeLibrary
impl RefUnwindSafe for TypeLibrary
impl Send for TypeLibrary
impl Sync for TypeLibrary
impl Unpin for TypeLibrary
impl UnsafeUnpin for TypeLibrary
impl UnwindSafe for TypeLibrary
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