pub struct InterfaceDefinition<'a>(/* private fields */);
Implementations§
source§impl<'a> InterfaceDefinition<'a>
impl<'a> InterfaceDefinition<'a>
pub fn name(&self) -> &'a str
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)