pub enum TypeReference {
Named(Ident),
Alternation(AlternationEnumDef),
}Expand description
Reference to a Rust type, which may be a single named type or an alternation enum.
Variants§
Named(Ident)
A single named node type.
Alternation(AlternationEnumDef)
An alternation enum generated for this field.
Trait Implementations§
Source§impl Clone for TypeReference
impl Clone for TypeReference
Source§fn clone(&self) -> TypeReference
fn clone(&self) -> TypeReference
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 moreAuto Trait Implementations§
impl Freeze for TypeReference
impl RefUnwindSafe for TypeReference
impl !Send for TypeReference
impl !Sync for TypeReference
impl Unpin for TypeReference
impl UnsafeUnpin for TypeReference
impl UnwindSafe for TypeReference
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