pub struct InterfaceTypeExtension<'src> {
pub directives: Vec<DirectiveAnnotation<'src>>,
pub fields: Vec<FieldDefinition<'src>>,
pub implements: Vec<Name<'src>>,
pub name: Name<'src>,
pub span: ByteSpan,
pub syntax: Option<Box<InterfaceTypeExtensionSyntax<'src>>>,
}Expand description
An interface type extension.
See Interface Extensions in the spec.
Fields§
§directives: Vec<DirectiveAnnotation<'src>>§fields: Vec<FieldDefinition<'src>>§implements: Vec<Name<'src>>§name: Name<'src>§span: ByteSpan§syntax: Option<Box<InterfaceTypeExtensionSyntax<'src>>>Implementations§
Source§impl<'src> InterfaceTypeExtension<'src>
impl<'src> InterfaceTypeExtension<'src>
Sourcepub fn name_value(&self) -> &str
pub fn name_value(&self) -> &str
Returns the name of this interface type extension as a string slice.
Convenience accessor for self.name.value.
Source§impl InterfaceTypeExtension<'_>
impl InterfaceTypeExtension<'_>
Sourcepub fn append_source(&self, sink: &mut String, source: Option<&str>)
pub fn append_source(&self, sink: &mut String, source: Option<&str>)
Sourcepub fn byte_span(&self) -> ByteSpan
pub fn byte_span(&self) -> ByteSpan
Returns this interface type extension’s byte-offset span within the source text.
The returned ByteSpan can be resolved to line/column
positions via source_span() or
ByteSpan::resolve().
Sourcepub fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
pub fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
Trait Implementations§
Source§impl AstNode for InterfaceTypeExtension<'_>
impl AstNode for InterfaceTypeExtension<'_>
Source§fn byte_span(&self) -> ByteSpan
fn byte_span(&self) -> ByteSpan
Returns this interface type extension’s byte-offset span within the source text.
The returned ByteSpan can be resolved to line/column
positions via source_span() or
ByteSpan::resolve().
Source§fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
Source§impl<'src> Clone for InterfaceTypeExtension<'src>
impl<'src> Clone for InterfaceTypeExtension<'src>
Source§fn clone(&self) -> InterfaceTypeExtension<'src>
fn clone(&self) -> InterfaceTypeExtension<'src>
Returns a duplicate 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<'src> Debug for InterfaceTypeExtension<'src>
impl<'src> Debug for InterfaceTypeExtension<'src>
Source§impl<'src> PartialEq for InterfaceTypeExtension<'src>
impl<'src> PartialEq for InterfaceTypeExtension<'src>
Source§fn eq(&self, other: &InterfaceTypeExtension<'src>) -> bool
fn eq(&self, other: &InterfaceTypeExtension<'src>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'src> StructuralPartialEq for InterfaceTypeExtension<'src>
Auto Trait Implementations§
impl<'src> Freeze for InterfaceTypeExtension<'src>
impl<'src> RefUnwindSafe for InterfaceTypeExtension<'src>
impl<'src> Send for InterfaceTypeExtension<'src>
impl<'src> Sync for InterfaceTypeExtension<'src>
impl<'src> Unpin for InterfaceTypeExtension<'src>
impl<'src> UnsafeUnpin for InterfaceTypeExtension<'src>
impl<'src> UnwindSafe for InterfaceTypeExtension<'src>
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