[][src]Struct ra_ap_syntax::Parse

pub struct Parse<T> { /* fields omitted */ }

Parse is the result of the parsing: a syntax tree and a collection of errors.

Note that we always produce a syntax tree, even for completely invalid files.

Implementations

impl<T> Parse<T>[src]

pub fn syntax_node(&self) -> SyntaxNode[src]

impl<T: AstNode> Parse<T>[src]

pub fn to_syntax(self) -> Parse<SyntaxNode>[src]

pub fn tree(&self) -> T[src]

pub fn errors(&self) -> &[SyntaxError][src]

pub fn ok(self) -> Result<T, Arc<Vec<SyntaxError>>>[src]

impl Parse<SyntaxNode>[src]

pub fn cast<N: AstNode>(self) -> Option<Parse<N>>[src]

impl Parse<SourceFile>[src]

pub fn debug_dump(&self) -> String[src]

pub fn reparse(&self, indel: &Indel) -> Parse<SourceFile>[src]

Trait Implementations

impl<T> Clone for Parse<T>[src]

impl<T: Debug> Debug for Parse<T>[src]

impl<T: Eq> Eq for Parse<T>[src]

impl<T: PartialEq> PartialEq<Parse<T>> for Parse<T>[src]

impl<T> StructuralEq for Parse<T>[src]

impl<T> StructuralPartialEq for Parse<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Parse<T>

impl<T> Send for Parse<T>

impl<T> Sync for Parse<T>

impl<T> Unpin for Parse<T>

impl<T> UnwindSafe for Parse<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.