pub struct ReferenceData<'types> {
pub meta: &'types ReferenceMeta,
pub mode: TypedefMode,
pub occurs: Occurs,
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::Reference
type.
Fields§
§meta: &'types ReferenceMeta
Reference to the original type information.
mode: TypedefMode
Typedef mode that should be used to render this reference type.
occurs: Occurs
Occurrence of the referenced type within this type.
type_ident: Ident
The identifier of the rendered type.
target_type: PathData
Actual 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 ReferenceData<'types>
impl<'types> RefUnwindSafe for ReferenceData<'types>
impl<'types> !Send for ReferenceData<'types>
impl<'types> !Sync for ReferenceData<'types>
impl<'types> Unpin for ReferenceData<'types>
impl<'types> UnwindSafe for ReferenceData<'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