pub struct Library<L>(/* private fields */);
Methods from Deref<Target = LibraryBuilder<L>>§
pub fn cell(&self, id: CellId) -> &Cell<L>
pub fn try_cell(&self, id: CellId) -> Option<&Cell<L>>
pub fn cell_named(&self, name: &str) -> &Cell<L>
pub fn try_cell_named(&self, name: &str) -> Option<&Cell<L>>
Sourcepub fn cell_id_named(&self, name: &str) -> CellId
pub fn cell_id_named(&self, name: &str) -> CellId
Gets the cell ID corresponding to the given name.
§Panics
Panics if no cell has the given name.
For a non-panicking alternative, see try_cell_id_named
.
Sourcepub fn try_cell_id_named(&self, name: &str) -> Option<CellId>
pub fn try_cell_id_named(&self, name: &str) -> Option<CellId>
Gets the cell ID corresponding to the given name.
Sourcepub fn cells(&self) -> impl Iterator<Item = (CellId, &Cell<L>)>
pub fn cells(&self) -> impl Iterator<Item = (CellId, &Cell<L>)>
Iterates over the (id, cell)
pairs in this library.
Sourcepub fn topological_order(&self) -> Vec<CellId>
pub fn topological_order(&self) -> Vec<CellId>
Returns cell IDs in topological order.
Trait Implementations§
Source§impl<'de, L> Deserialize<'de> for Library<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for Library<L>where
L: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<L: Eq> Eq for Library<L>
impl<L> StructuralPartialEq for Library<L>
Auto Trait Implementations§
impl<L> Freeze for Library<L>
impl<L> RefUnwindSafe for Library<L>where
L: RefUnwindSafe,
impl<L> Send for Library<L>where
L: Send,
impl<L> Sync for Library<L>where
L: Sync,
impl<L> Unpin for Library<L>where
L: Unpin,
impl<L> UnwindSafe for Library<L>where
L: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.