Struct ra_ap_syntax::ast::Static
source · pub struct Static { /* private fields */ }
Implementations§
source§impl Static
impl Static
pub fn body(&self) -> Option<Expr>
pub fn ty(&self) -> Option<Type>
pub fn colon_token(&self) -> Option<SyntaxToken>
pub fn semicolon_token(&self) -> Option<SyntaxToken>
pub fn eq_token(&self) -> Option<SyntaxToken>
pub fn mut_token(&self) -> Option<SyntaxToken>
pub fn static_token(&self) -> Option<SyntaxToken>
Trait Implementations§
source§impl AstNode for Static
impl AstNode for Static
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl From<Static> for ExternItem
impl From<Static> for ExternItem
source§fn from(node: Static) -> ExternItem
fn from(node: Static) -> ExternItem
Converts to this type from the input type.
source§impl HasDocComments for Static
impl HasDocComments for Static
fn doc_comments(&self) -> DocCommentIter ⓘ
source§impl HasVisibility for Static
impl HasVisibility for Static
fn visibility(&self) -> Option<Visibility>
source§impl PartialEq for Static
impl PartialEq for Static
impl Eq for Static
impl StructuralPartialEq for Static
Auto Trait Implementations§
impl Freeze for Static
impl !RefUnwindSafe for Static
impl !Send for Static
impl !Sync for Static
impl Unpin for Static
impl !UnwindSafe for Static
Blanket Implementations§
source§impl<N> AstNodeEdit for N
impl<N> AstNodeEdit for N
fn indent_level(&self) -> IndentLevel
fn indent(&self, level: IndentLevel) -> Self
fn dedent(&self, level: IndentLevel) -> Self
fn reset_indent(&self) -> Self
source§impl<T> AttrsOwnerEdit for Twhere
T: HasAttrs,
impl<T> AttrsOwnerEdit for Twhere
T: HasAttrs,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.