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