Enum ra_ap_syntax::ast::Item [−][src]
pub enum Item { }
Variants
Const(Const)
Enum(Enum)
ExternBlock(ExternBlock)
ExternCrate(ExternCrate)
Fn(Fn)
Impl(Impl)
MacroCall(MacroCall)
MacroRules(MacroRules)
MacroDef(MacroDef)
Module(Module)
Static(Static)
Struct(Struct)
Trait(Trait)
TypeAlias(TypeAlias)
Union(Union)
Use(Use)
Implementations
Trait Implementations
impl AstNode for Item
[src]
impl AstNode for Item
[src]fn can_cast(kind: SyntaxKind) -> bool
[src]
fn cast(syntax: SyntaxNode) -> Option<Self>
[src]
fn syntax(&self) -> &SyntaxNode
[src]
fn clone_for_update(&self) -> Self where
Self: Sized,
[src]
Self: Sized,
fn clone_subtree(&self) -> Self where
Self: Sized,
[src]
Self: Sized,
impl AttrsOwner for Item
[src]
impl AttrsOwner for Item
[src]fn attrs(&self) -> AstChildren<Attr>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
[src]
Notable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
fn has_atom_attr(&self, atom: &str) -> bool
[src]
impl From<ExternBlock> for Item
[src]
impl From<ExternBlock> for Item
[src]fn from(node: ExternBlock) -> Item
[src]
fn from(node: ExternBlock) -> Item
[src]Performs the conversion.
impl From<ExternCrate> for Item
[src]
impl From<ExternCrate> for Item
[src]fn from(node: ExternCrate) -> Item
[src]
fn from(node: ExternCrate) -> Item
[src]Performs the conversion.
impl From<MacroRules> for Item
[src]
impl From<MacroRules> for Item
[src]fn from(node: MacroRules) -> Item
[src]
fn from(node: MacroRules) -> Item
[src]Performs the conversion.
impl Eq for Item
[src]
impl StructuralEq for Item
[src]
impl StructuralPartialEq for Item
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Item
impl !Send for Item
impl !Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
Blanket Implementations
impl<N> AstNodeEdit for N where
N: AstNode + Clone,
[src]
impl<N> AstNodeEdit for N where
N: AstNode + Clone,
[src]#[must_use]fn replace_children(
&self,
to_replace: RangeInclusive<SyntaxElement>,
to_insert: impl IntoIterator<Item = SyntaxElement>
) -> Self
[src]
#[must_use]
fn replace_children(&self,
to_replace: RangeInclusive<SyntaxElement>,
to_insert: impl IntoIterator<Item = SyntaxElement>
) -> Self
fn indent_level(&self) -> IndentLevel
[src]
#[must_use]fn indent(&self, level: IndentLevel) -> Self
[src]
#[must_use]
fn indent(&self, level: IndentLevel) -> Self#[must_use]fn dedent(&self, level: IndentLevel) -> Self
[src]
#[must_use]
fn dedent(&self, level: IndentLevel) -> Self#[must_use]fn reset_indent(&self) -> Self
[src]
#[must_use]
fn reset_indent(&self) -> Selfimpl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more