pub enum Type {
Union(UnionInfo),
BuildIn(BuildInInfo),
Reference(ReferenceInfo),
Enumeration(EnumerationInfo),
Abstract(AbstractInfo),
All(GroupInfo),
Choice(GroupInfo),
Sequence(GroupInfo),
ComplexType(ComplexInfo),
}Expand description
Represents a type that was read and interpreted from an XML schema.
Variants§
Union(UnionInfo)
Represents a union type
BuildIn(BuildInInfo)
Represents a build-in type
Reference(ReferenceInfo)
References an other type
Enumeration(EnumerationInfo)
Represents an enumeration
Abstract(AbstractInfo)
Represents an abstract element
All(GroupInfo)
Represents a specific set of elements
Choice(GroupInfo)
Represents a choice of different elements
Sequence(GroupInfo)
Represents a sequence of different elements
ComplexType(ComplexInfo)
Represents a complex type
Trait Implementations§
Source§impl From<BuildInInfo> for Type
impl From<BuildInInfo> for Type
Source§fn from(value: BuildInInfo) -> Self
fn from(value: BuildInInfo) -> Self
Converts to this type from the input type.
Source§impl From<EnumerationInfo> for Type
impl From<EnumerationInfo> for Type
Source§fn from(value: EnumerationInfo) -> Self
fn from(value: EnumerationInfo) -> Self
Converts to this type from the input type.
Source§impl From<ReferenceInfo> for Type
impl From<ReferenceInfo> for Type
Source§fn from(value: ReferenceInfo) -> Self
fn from(value: ReferenceInfo) -> Self
Converts to this type from the input type.
Source§impl TypeEq for Type
impl TypeEq for Type
Source§fn type_eq(&self, other: &Self, types: &Types) -> bool
fn type_eq(&self, other: &Self, types: &Types) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for Type
impl !RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl !UnwindSafe for Type
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