pub struct LayoutLibrary<S: Schema> { /* private fields */ }Expand description
A layout library in a given schema.
Methods from Deref<Target = LibraryBuilder<L>>§
pub fn cell(&self, id: Id<Cells>) -> &Cell<L>
pub fn try_cell(&self, id: Id<Cells>) -> 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) -> Id<Cells>
pub fn cell_id_named(&self, name: &str) -> Id<Cells>
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<Id<Cells>>
pub fn try_cell_id_named(&self, name: &str) -> Option<Id<Cells>>
Gets the cell ID corresponding to the given name.
Sourcepub fn cells(&self) -> impl Iterator<Item = (Id<Cells>, &Cell<L>)>
pub fn cells(&self) -> impl Iterator<Item = (Id<Cells>, &Cell<L>)>
Iterates over the (id, cell) pairs in this library.
Sourcepub fn topological_order(&self) -> Vec<Id<Cells>>
pub fn topological_order(&self) -> Vec<Id<Cells>>
Returns cell IDs in topological order.
Trait Implementations§
Source§impl<S: Schema> Deref for LayoutLibrary<S>
impl<S: Schema> Deref for LayoutLibrary<S>
Auto Trait Implementations§
impl<S> Freeze for LayoutLibrary<S>
impl<S> RefUnwindSafe for LayoutLibrary<S>
impl<S> Send for LayoutLibrary<S>
impl<S> Sync for LayoutLibrary<S>
impl<S> Unpin for LayoutLibrary<S>
impl<S> UnwindSafe for LayoutLibrary<S>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request