Struct ImportedFile
pub struct ImportedFile {
pub path: String,
pub from_stdlib: bool,
pub text: String,
}Expand description
One resolved imported file — Lark’s used_files KEY:
a filesystem/package joined_path plus whether it came from the embedded
stdlib (FromPackageLoader), which the binding surfaces as a
PackageResource rather than a plain path string (list_grammar_imports).
Fields§
§path: String§from_stdlib: bool§text: StringThe text the loader served for path — what the load actually consumed,
never a re-read of path (a callable loader may serve text no file
holds).
Auto Trait Implementations§
impl Freeze for ImportedFile
impl RefUnwindSafe for ImportedFile
impl Send for ImportedFile
impl Sync for ImportedFile
impl Unpin for ImportedFile
impl UnsafeUnpin for ImportedFile
impl UnwindSafe for ImportedFile
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