[−][src]Struct ra_ap_syntax::Parse
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]
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]
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>,