pub enum TypeRef<'a> {
Type(&'a str),
ListType(&'a TypeRef<'a>),
NonNullType(&'a TypeRef<'a>),
}Variants§
Implementations§
Trait Implementations§
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.
Source§impl<'a> PartialEq for TypeRef<'a>
This implementation is necessary to circuit break circular types.
Without this impl, PartialEq would never stop comparing types referencing each other.
We achieve this by only ever comparing type names, which is all we need for comparing references.
impl<'a> PartialEq for TypeRef<'a>
This implementation is necessary to circuit break circular types.
Without this impl, PartialEq would never stop comparing types referencing each other.
We achieve this by only ever comparing type names, which is all we need for comparing references.
impl<'a> Copy for TypeRef<'a>
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