pub struct EmbeddedSource {
pub path: &'static str,
pub text: &'static str,
}Expand description
One .cove file a built binary carries.
Fields§
§path: &'static strThe file’s path relative to the package root it was built from, such
as hello/main.cove. It names the module the file belongs to and is
what a diagnostic reports, so a built binary’s errors carry no path
from the machine that built it.
text: &'static strThe file’s text, exactly as it was checked at build time.
Auto Trait Implementations§
impl Freeze for EmbeddedSource
impl RefUnwindSafe for EmbeddedSource
impl Send for EmbeddedSource
impl Sync for EmbeddedSource
impl Unpin for EmbeddedSource
impl UnsafeUnpin for EmbeddedSource
impl UnwindSafe for EmbeddedSource
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