pub struct ParsedText<I> {
pub code: Vec<Spanned<I>>,
pub symbols: Vec<Spanned<Symbol>>,
pub errors: Vec<SyntaxError>,
}Expand description
A located .text stream: instructions in address order, symbol
definitions in source order, and every syntax error.
When errors is non-empty the other fields hold what could
be recovered: malformed statements are skipped and occupy no address.
Fields§
§code: Vec<Spanned<I>>Each instruction’s span covers the instruction, without a symbol definition before it on its line or a trailing comment.
symbols: Vec<Spanned<Symbol>>Each symbol’s span covers its whole @name: definition.
errors: Vec<SyntaxError>Trait Implementations§
Source§impl<I: Clone> Clone for ParsedText<I>
impl<I: Clone> Clone for ParsedText<I>
Source§fn clone(&self) -> ParsedText<I>
fn clone(&self) -> ParsedText<I>
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<I: Debug> Debug for ParsedText<I>
impl<I: Debug> Debug for ParsedText<I>
Source§impl<I: PartialEq> PartialEq for ParsedText<I>
impl<I: PartialEq> PartialEq for ParsedText<I>
impl<I: PartialEq> StructuralPartialEq for ParsedText<I>
Auto Trait Implementations§
impl<I> Freeze for ParsedText<I>
impl<I> RefUnwindSafe for ParsedText<I>where
I: RefUnwindSafe,
impl<I> Send for ParsedText<I>where
I: Send,
impl<I> Sync for ParsedText<I>where
I: Sync,
impl<I> Unpin for ParsedText<I>where
I: Unpin,
impl<I> UnsafeUnpin for ParsedText<I>
impl<I> UnwindSafe for ParsedText<I>where
I: 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].