pub struct VariableDefinition { /* private fields */ }
Implementations§
source§impl VariableDefinition
impl VariableDefinition
pub fn variable(&self) -> Option<Variable>
pub fn colon_token(&self) -> Option<SyntaxToken>
pub fn ty(&self) -> Option<Type>
pub fn default_value(&self) -> Option<DefaultValue>
pub fn directives(&self) -> Option<Directives>
Trait Implementations§
source§impl Clone for VariableDefinition
impl Clone for VariableDefinition
source§fn clone(&self) -> VariableDefinition
fn clone(&self) -> VariableDefinition
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 VariableDefinition
impl CstNode for VariableDefinition
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 VariableDefinition
impl Debug for VariableDefinition
source§impl Hash for VariableDefinition
impl Hash for VariableDefinition
source§impl PartialEq for VariableDefinition
impl PartialEq for VariableDefinition
impl Eq for VariableDefinition
impl StructuralPartialEq for VariableDefinition
Auto Trait Implementations§
impl Freeze for VariableDefinition
impl !RefUnwindSafe for VariableDefinition
impl !Send for VariableDefinition
impl !Sync for VariableDefinition
impl Unpin for VariableDefinition
impl !UnwindSafe for VariableDefinition
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
)