Struct ra_ap_syntax::ast::Static
source · pub struct Static { /* private fields */ }
Implementations§
source§impl Static
impl Static
pub fn static_token(&self) -> Option<SyntaxToken>
pub fn mut_token(&self) -> Option<SyntaxToken>
pub fn colon_token(&self) -> Option<SyntaxToken>
pub fn ty(&self) -> Option<Type>
pub fn eq_token(&self) -> Option<SyntaxToken>
pub fn body(&self) -> Option<Expr>
pub fn semicolon_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 ⓘ
fn doc_comments_and_attrs(&self) -> AttrDocCommentIter ⓘ
source§impl HasVisibility for Static
impl HasVisibility for Static
fn visibility(&self) -> Option<Visibility>
source§impl PartialEq<Static> for Static
impl PartialEq<Static> for Static
impl Eq for Static
impl StructuralEq for Static
impl StructuralPartialEq for Static
Auto Trait Implementations§
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 Nwhere
N: AstNode + Clone,
impl<N> AstNodeEdit for Nwhere
N: AstNode + Clone,
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,
fn remove_attrs_and_docs(&self)
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.