pub struct Lib {
pub name: String,
pub version: String,
pub doc: String,
pub depends: Vec<String>,
pub defs: HashMap<String, Def>,
}Expand description
A library of Haystack 4 definitions.
Each library groups related defs under a name (e.g. "phIoT") and
tracks its version, documentation, and dependencies on other libraries.
Fields§
§name: StringLibrary name, e.g. "phIoT".
version: StringVersion string, e.g. "4.0.0".
doc: StringLibrary description.
depends: Vec<String>Names of dependent libraries.
defs: HashMap<String, Def>Symbol -> Def mapping.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lib
impl RefUnwindSafe for Lib
impl Send for Lib
impl Sync for Lib
impl Unpin for Lib
impl UnsafeUnpin for Lib
impl UnwindSafe for Lib
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