pub struct EnumDefinition<'a>(/* private fields */);
Implementations§
source§impl<'a> EnumDefinition<'a>
impl<'a> EnumDefinition<'a>
pub fn name(&self) -> &'a str
pub fn description(&self) -> Option<Description<'a>>
pub fn values(&self) -> Iter<'a, EnumValueDefinition<'a>> ⓘ
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn span(&self) -> Span
source§impl EnumDefinition<'_>
impl EnumDefinition<'_>
pub fn id(&self) -> EnumDefinitionId
Trait Implementations§
source§impl<'a> Clone for EnumDefinition<'a>
impl<'a> Clone for EnumDefinition<'a>
source§fn clone(&self) -> EnumDefinition<'a>
fn clone(&self) -> EnumDefinition<'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 EnumDefinition<'_>
impl Debug for EnumDefinition<'_>
source§impl IdReader for EnumDefinition<'_>
impl IdReader for EnumDefinition<'_>
type Id = EnumDefinitionId
impl<'a> Copy for EnumDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnumDefinition<'a>
impl<'a> RefUnwindSafe for EnumDefinition<'a>
impl<'a> Send for EnumDefinition<'a>
impl<'a> Sync for EnumDefinition<'a>
impl<'a> Unpin for EnumDefinition<'a>
impl<'a> UnwindSafe for EnumDefinition<'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
)