Struct ra_ap_syntax::ast::Label [−][src]
pub struct Label { /* fields omitted */ }Implementations
impl Label[src]
impl Label[src]pub fn lifetime(&self) -> Option<Lifetime>[src]
pub fn colon_token(&self) -> Option<SyntaxToken>[src]
Trait Implementations
impl AstNode for Label[src]
impl AstNode for Label[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 Eq for Label[src]
impl StructuralEq for Label[src]
impl StructuralPartialEq for Label[src]
Auto Trait Implementations
impl !RefUnwindSafe for Label
impl !Send for Label
impl !Sync for Label
impl Unpin for Label
impl !UnwindSafe for Label
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 = TThe 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