pub struct Type {
pub display_name: Option<String>,
pub variant: TypeVariant,
}Expand description
Represents a type that was read and interpreted from an XML schema.
Fields§
§display_name: Option<String>Name to use for rendering instead of the auto generated name.
variant: TypeVariantActual data type this type represents.
Implementations§
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<ComplexInfo> for Type
impl From<ComplexInfo> for Type
Source§fn from(value: ComplexInfo) -> Self
fn from(value: ComplexInfo) -> Self
Converts to this type from the input type.
Source§impl From<DynamicInfo> for Type
impl From<DynamicInfo> for Type
Source§fn from(value: DynamicInfo) -> Self
fn from(value: DynamicInfo) -> 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_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
Feeds this value into the given
Hasher.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_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
Feeds a slice of this value into the given
Hasher.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