pub struct InterfaceDefinition<'a>(/* private fields */);
Implementations§
Source§impl<'a> InterfaceDefinition<'a>
impl<'a> InterfaceDefinition<'a>
pub fn name(&self) -> &'a str
pub fn name_span(&self) -> Span
pub fn description(&self) -> Option<Description<'a>>
pub fn fields(&self) -> Iter<'a, FieldDefinition<'a>> ⓘ
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn implements_interfaces( &self, ) -> impl ExactSizeIterator<Item = &'a str> + 'a
pub fn span(&self) -> Span
Source§impl InterfaceDefinition<'_>
impl InterfaceDefinition<'_>
pub fn id(&self) -> InterfaceDefinitionId
Trait Implementations§
Source§impl<'a> Clone for InterfaceDefinition<'a>
impl<'a> Clone for InterfaceDefinition<'a>
Source§fn clone(&self) -> InterfaceDefinition<'a>
fn clone(&self) -> InterfaceDefinition<'a>
Returns a copy 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 InterfaceDefinition<'_>
impl Debug for InterfaceDefinition<'_>
Source§impl IdReader for InterfaceDefinition<'_>
impl IdReader for InterfaceDefinition<'_>
type Id = InterfaceDefinitionId
type Reader<'a> = InterfaceDefinition<'a>
fn new(id: Self::Id, document: &TypeSystemDocument) -> Self::Reader<'_>
impl<'a> Copy for InterfaceDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterfaceDefinition<'a>
impl<'a> RefUnwindSafe for InterfaceDefinition<'a>
impl<'a> Send for InterfaceDefinition<'a>
impl<'a> Sync for InterfaceDefinition<'a>
impl<'a> Unpin for InterfaceDefinition<'a>
impl<'a> UnwindSafe for InterfaceDefinition<'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