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