pub struct VariableDefinition<'a>(/* private fields */);
Implementations§
source§impl<'a> VariableDefinition<'a>
impl<'a> VariableDefinition<'a>
pub fn name(&self) -> &'a str
pub fn ty(&self) -> Type<'a>
pub fn default_value(&self) -> Option<ConstValue<'a>>
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
source§impl VariableDefinition<'_>
impl VariableDefinition<'_>
pub fn id(&self) -> VariableDefinitionId
Trait Implementations§
source§impl<'a> Clone for VariableDefinition<'a>
impl<'a> Clone for VariableDefinition<'a>
source§fn clone(&self) -> VariableDefinition<'a>
fn clone(&self) -> VariableDefinition<'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 VariableDefinition<'_>
impl Debug for VariableDefinition<'_>
source§impl IdReader for VariableDefinition<'_>
impl IdReader for VariableDefinition<'_>
type Id = VariableDefinitionId
impl<'a> Copy for VariableDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for VariableDefinition<'a>
impl<'a> RefUnwindSafe for VariableDefinition<'a>
impl<'a> Send for VariableDefinition<'a>
impl<'a> Sync for VariableDefinition<'a>
impl<'a> Unpin for VariableDefinition<'a>
impl<'a> UnwindSafe for VariableDefinition<'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
)