pub enum TypeData<'types> {
BuildIn(BuildInType<'types>),
Union(UnionType<'types>),
Dynamic(DynamicType<'types>),
Reference(ReferenceType<'types>),
Enumeration(EnumerationType<'types>),
Complex(ComplexType<'types>),
}Expand description
Represents the type data that is generated by teh generator for a type that needs to be rendered.
The generator adds additional useful data that is needed for the rendering
process to the actual Type that needs to be rendered. So instead of
passing the type directly to the renderer and re-calculate the data inside
every renderer, the type is once evaluated by the generator and then any
renderer can profit from the enriched data.
Variants§
BuildIn(BuildInType<'types>)
Corresponds to TypeVariant::BuildIn.
Union(UnionType<'types>)
Corresponds to TypeVariant::Union.
Dynamic(DynamicType<'types>)
Corresponds to TypeVariant::Dynamic.
Reference(ReferenceType<'types>)
Corresponds to TypeVariant::Reference.
Enumeration(EnumerationType<'types>)
Corresponds to TypeVariant::Enumeration.
Complex(ComplexType<'types>)
Corresponds to TypeVariant::All, TypeVariant::Choice,
TypeVariant::Sequence or TypeVariant::ComplexType.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for TypeData<'types>
impl<'types> !RefUnwindSafe for TypeData<'types>
impl<'types> !Send for TypeData<'types>
impl<'types> !Sync for TypeData<'types>
impl<'types> Unpin for TypeData<'types>
impl<'types> !UnwindSafe for TypeData<'types>
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