pub struct ResolvedLibrary {
pub name: String,
pub version: String,
pub kind: LibraryKind,
pub description: Option<String>,
pub basic_events: BTreeMap<String, BasicEvent>,
pub gates: BTreeMap<String, Gate>,
pub depends_on: Vec<LibraryImport>,
}Expand description
One resolved library: its identity plus the basic-event definitions it provides, keyed by short (unqualified) name.
Fields§
§name: String§version: String§kind: LibraryKind§description: Option<String>§basic_events: BTreeMap<String, BasicEvent>§gates: BTreeMap<String, Gate>Named, reusable boolean combinators built from the same core
GateType a document’s own gates: already uses (see
splice_referenced_definitions). A gate’s own inputs may
reference further qualified ids, resolved transitively.
depends_on: Vec<LibraryImport>Implementations§
Source§impl ResolvedLibrary
impl ResolvedLibrary
Sourcepub fn provenance(&self) -> LibraryProvenance
pub fn provenance(&self) -> LibraryProvenance
A lightweight, serializable identity summary for build provenance — deliberately without the resolved component definitions themselves.
Trait Implementations§
Source§impl Clone for ResolvedLibrary
impl Clone for ResolvedLibrary
Source§fn clone(&self) -> ResolvedLibrary
fn clone(&self) -> ResolvedLibrary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedLibrary
impl RefUnwindSafe for ResolvedLibrary
impl Send for ResolvedLibrary
impl Sync for ResolvedLibrary
impl Unpin for ResolvedLibrary
impl UnsafeUnpin for ResolvedLibrary
impl UnwindSafe for ResolvedLibrary
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