pub struct ParsedDeclarations<D> {
pub declarations: Vec<Spanned<D>>,
pub errors: Vec<SyntaxError>,
}Expand description
Located header declarations and every syntax error.
Fields§
§declarations: Vec<Spanned<D>>Each declaration’s span covers its statement, without a trailing comment.
errors: Vec<SyntaxError>Trait Implementations§
Source§impl<D: Clone> Clone for ParsedDeclarations<D>
impl<D: Clone> Clone for ParsedDeclarations<D>
Source§fn clone(&self) -> ParsedDeclarations<D>
fn clone(&self) -> ParsedDeclarations<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Debug> Debug for ParsedDeclarations<D>
impl<D: Debug> Debug for ParsedDeclarations<D>
Source§impl<D: PartialEq> PartialEq for ParsedDeclarations<D>
impl<D: PartialEq> PartialEq for ParsedDeclarations<D>
impl<D: PartialEq> StructuralPartialEq for ParsedDeclarations<D>
Auto Trait Implementations§
impl<D> Freeze for ParsedDeclarations<D>
impl<D> RefUnwindSafe for ParsedDeclarations<D>where
D: RefUnwindSafe,
impl<D> Send for ParsedDeclarations<D>where
D: Send,
impl<D> Sync for ParsedDeclarations<D>where
D: Sync,
impl<D> Unpin for ParsedDeclarations<D>where
D: Unpin,
impl<D> UnsafeUnpin for ParsedDeclarations<D>
impl<D> UnwindSafe for ParsedDeclarations<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].