pub struct NamedType<'a> {
pub name: &'a str,
}
Expand description
AST Node for a type name.
This AST uses this reference instead of a raw &str
.
slice whenever the AST refers to a concrete object type, input type, fragment
name, or operation name.
Fields§
§name: &'a str
Trait Implementations§
impl<'a> Copy for NamedType<'a>
impl<'a> Eq for NamedType<'a>
impl<'a> StructuralPartialEq for NamedType<'a>
Auto Trait Implementations§
impl<'a> Freeze for NamedType<'a>
impl<'a> RefUnwindSafe for NamedType<'a>
impl<'a> Send for NamedType<'a>
impl<'a> Sync for NamedType<'a>
impl<'a> Unpin for NamedType<'a>
impl<'a> UnwindSafe for NamedType<'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