pub struct TypeSchema {
pub ty: String,
pub generic_ty_args: Vec<TypeSchema>,
}Expand description
Schema for a parsed type, including any generic arguments.
Fields§
§ty: String§generic_ty_args: Vec<TypeSchema>Implementations§
Source§impl TypeSchema
impl TypeSchema
pub fn new_simple(ty: String) -> Self
Trait Implementations§
Source§impl Clone for TypeSchema
impl Clone for TypeSchema
Source§fn clone(&self) -> TypeSchema
fn clone(&self) -> TypeSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeSchema
impl Debug for TypeSchema
Source§impl Display for TypeSchema
impl Display for TypeSchema
Source§impl Into<TokenStream> for TypeSchema
impl Into<TokenStream> for TypeSchema
Source§fn into(self) -> TokenStream
fn into(self) -> TokenStream
Convert a type schema into tokens suitable for embedding in generated code.
Auto Trait Implementations§
impl Freeze for TypeSchema
impl RefUnwindSafe for TypeSchema
impl Send for TypeSchema
impl Sync for TypeSchema
impl Unpin for TypeSchema
impl UnwindSafe for TypeSchema
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