pub enum TypeRef<'a> {
Type(&'a str),
ListType(&'a TypeRef<'a>),
NonNullType(&'a TypeRef<'a>),
}Variants§
Implementations§
Trait Implementations§
impl<'a> Copy for TypeRef<'a>
Source§impl<'a> Debug for TypeRef<'a>
This implementation is necessary to circuit break circular types.
Without this impl, Debug would print on and on, overflowing the stack as it’s bouncing between types over and over.
impl<'a> Debug for TypeRef<'a>
This implementation is necessary to circuit break circular types.
Without this impl, Debug would print on and on, overflowing the stack as it’s bouncing between types over and over.
Auto Trait Implementations§
impl<'a> Freeze for TypeRef<'a>
impl<'a> RefUnwindSafe for TypeRef<'a>
impl<'a> Send for TypeRef<'a>
impl<'a> Sync for TypeRef<'a>
impl<'a> Unpin for TypeRef<'a>
impl<'a> UnsafeUnpin for TypeRef<'a>
impl<'a> UnwindSafe for TypeRef<'a>
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