pub struct NullValue<'src> {
pub span: ByteSpan,
pub syntax: Option<Box<NullValueSyntax<'src>>>,
}Expand description
A GraphQL null literal.
See the Null Value section of the spec.
Fields§
§span: ByteSpan§syntax: Option<Box<NullValueSyntax<'src>>>Implementations§
Source§impl NullValue<'_>
impl NullValue<'_>
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 null value’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 NullValue<'_>
impl AstNode for NullValue<'_>
Source§fn byte_span(&self) -> ByteSpan
fn byte_span(&self) -> ByteSpan
Returns this null value’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>
impl<'src> StructuralPartialEq for NullValue<'src>
Auto Trait Implementations§
impl<'src> Freeze for NullValue<'src>
impl<'src> RefUnwindSafe for NullValue<'src>
impl<'src> Send for NullValue<'src>
impl<'src> Sync for NullValue<'src>
impl<'src> Unpin for NullValue<'src>
impl<'src> UnsafeUnpin for NullValue<'src>
impl<'src> UnwindSafe for NullValue<'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