pub struct SimpleData<'types> {
pub meta: &'types SimpleMeta,
pub occurs: Occurs,
pub constrains: ConstrainsData<'types>,
pub type_ident: Ident,
pub target_type: PathData,
pub trait_impls: Vec<TokenStream>,
}Expand description
Contains additional information for the rendering process of a
MetaTypeVariant::SimpleType
type.
Fields§
§meta: &'types SimpleMetaReference to the original type information.
occurs: OccursOccurrence of the referenced type within this type.
constrains: ConstrainsData<'types>Code generator data for the constrains of the type.
type_ident: IdentThe identifier of the rendered type.
target_type: PathDataActual target type of this referenced type.
trait_impls: Vec<TokenStream>List of traits that needs to be implemented by this type.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for SimpleData<'types>
impl<'types> RefUnwindSafe for SimpleData<'types>
impl<'types> !Send for SimpleData<'types>
impl<'types> !Sync for SimpleData<'types>
impl<'types> Unpin for SimpleData<'types>
impl<'types> UnwindSafe for SimpleData<'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