[−][src]Struct ra_ap_syntax::AstPtr
Like SyntaxNodePtr, but remembers the type of node
Implementations
impl<N: AstNode> AstPtr<N>[src]
pub fn new(node: &N) -> AstPtr<N>[src]
pub fn to_node(&self, root: &SyntaxNode) -> N[src]
pub fn syntax_node_ptr(&self) -> SyntaxNodePtr[src]
pub fn cast<U: AstNode>(self) -> Option<AstPtr<U>>[src]
Trait Implementations
impl<N: AstNode> Clone for AstPtr<N>[src]
impl<N: Debug + AstNode> Debug for AstPtr<N>[src]
impl<N: AstNode> Eq for AstPtr<N>[src]
impl<N: AstNode> From<AstPtr<N>> for SyntaxNodePtr[src]
fn from(ptr: AstPtr<N>) -> SyntaxNodePtr[src]
impl<N: AstNode> Hash for AstPtr<N>[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<N: AstNode> PartialEq<AstPtr<N>> for AstPtr<N>[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for AstPtr<N>
impl<N> Send for AstPtr<N>
impl<N> Sync for AstPtr<N>
impl<N> Unpin for AstPtr<N>
impl<N> UnwindSafe for AstPtr<N>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,