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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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