pub struct DirectiveDefinition { /* private fields */ }
Implementations§
source§impl DirectiveDefinition
impl DirectiveDefinition
pub fn description(&self) -> Option<Description>
pub fn directive_token(&self) -> Option<SyntaxToken>
pub fn at_token(&self) -> Option<SyntaxToken>
pub fn name(&self) -> Option<Name>
pub fn arguments_definition(&self) -> Option<ArgumentsDefinition>
pub fn repeatable_token(&self) -> Option<SyntaxToken>
pub fn on_token(&self) -> Option<SyntaxToken>
pub fn directive_locations(&self) -> Option<DirectiveLocations>
Trait Implementations§
source§impl Clone for DirectiveDefinition
impl Clone for DirectiveDefinition
source§fn clone(&self) -> DirectiveDefinition
fn clone(&self) -> DirectiveDefinition
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 CstNode for DirectiveDefinition
impl CstNode for DirectiveDefinition
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl Debug for DirectiveDefinition
impl Debug for DirectiveDefinition
source§impl From<DirectiveDefinition> for Definition
impl From<DirectiveDefinition> for Definition
source§fn from(node: DirectiveDefinition) -> Definition
fn from(node: DirectiveDefinition) -> Definition
Converts to this type from the input type.
source§impl Hash for DirectiveDefinition
impl Hash for DirectiveDefinition
source§impl PartialEq for DirectiveDefinition
impl PartialEq for DirectiveDefinition
impl Eq for DirectiveDefinition
impl StructuralPartialEq for DirectiveDefinition
Auto Trait Implementations§
impl Freeze for DirectiveDefinition
impl !RefUnwindSafe for DirectiveDefinition
impl !Send for DirectiveDefinition
impl !Sync for DirectiveDefinition
impl Unpin for DirectiveDefinition
impl !UnwindSafe for DirectiveDefinition
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
)