pub struct ParsedSource {
pub path: RelPath,
pub text: String,
pub syntax: File,
}Expand description
One explicitly selected source and its owned syntax tree.
The syntax and its spans stay on the worker that parsed them. A batch visitor
can move these records into its own analysis structures and return Send
report data through parse_sources.
Fields§
§path: RelPathThe caller’s source identity; no discovery or module selection is performed.
text: StringThe original source text, moved from the input without copying.
syntax: FileThe syntax tree, owned by the visitor.
Auto Trait Implementations§
impl !Send for ParsedSource
impl !Sync for ParsedSource
impl Forget for ParsedSource
impl Freeze for ParsedSource
impl Move for ParsedSource
impl RefUnwindSafe for ParsedSource
impl Unpin for ParsedSource
impl UnsafeUnpin for ParsedSource
impl UnwindSafe for ParsedSource
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more