pub struct Sources {
pub module: Option<String>,
pub interface: Option<String>,
pub path: Option<String>,
}Expand description
One module’s sources: its implementation, and its published interface if one is checked in.
Fields§
§module: Option<String>The .beck file. Required to link; optional to check against.
interface: Option<String>The .becki file, if it is checked in. When present it is what downstream modules see —
which is the point: reviewing the contract is reviewing this file.
path: Option<String>Where the module text came from, if it was a file. Two things depend on it and both are
visible to a user: which surface the text is in — .sx selects the S-expression reader
(§2.2) — and what a diagnostic calls the file. Defaults to <name>.beck.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sources
impl RefUnwindSafe for Sources
impl Send for Sources
impl Sync for Sources
impl Unpin for Sources
impl UnwindSafe for Sources
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