pub struct Api {
pub types: BTreeSet<String>,
pub members: BTreeSet<String>,
}Expand description
Identifiers a repo declares: types (class PetriNet, struct Marking, interface TokenSink)
and members (fn fire_transition, def deadlock_free, public boolean deadlockFree().
Fields§
§types: BTreeSet<String>§members: BTreeSet<String>Implementations§
Source§impl Api
impl Api
Sourcepub fn used_in(&self, sentence: &str) -> bool
pub fn used_in(&self, sentence: &str) -> bool
Whether sentence uses this API: it names one of its types, or two distinct members (one
member name alone, getState or close_all, is too likely the consumer’s own).
Sourcepub fn without_declared_in(self, dir: &Path, plan: &str) -> Api
pub fn without_declared_in(self, dir: &Path, plan: &str) -> Api
Without the identifiers the consumer in dir declares itself: its own PetriNet is not the
expert’s. Only the identifiers plan uses are looked up, so this stays cheap.
Trait Implementations§
impl StructuralPartialEq for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
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