Struct libreda_db::layout::cell_instance::CellInstance [−][src]
An actual instance of a cell.
Implementations
impl<C: CoordinateType> CellInstance<C>
[src]
pub fn id(&self) -> CellInstId
[src]
Get the ID of this cell instance.
pub fn cell(&self) -> Weak<Cell<C>>
[src]
Get reference to the template cell.
pub fn cell_id(&self) -> CellIndex
[src]
Get ID of the template cell.
pub fn parent_cell(&self) -> Weak<Cell<C>>
[src]
Get reference to the cell where this instance lives in.
pub fn get_transform(&self) -> SimpleTransform<C>
[src]
Get the transformation describing the location, orientation and magnification of this cell instance.
Trait Implementations
impl<C: Clone + CoordinateType> Clone for CellInstance<C>
[src]
fn clone(&self) -> CellInstance<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug + CoordinateType> Debug for CellInstance<C>
[src]
impl<C: CoordinateType> Eq for CellInstance<C>
[src]
impl<C: CoordinateType> Hash for CellInstance<C>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<C: CoordinateType> PartialEq<CellInstance<C>> for CellInstance<C>
[src]
impl<C: CoordinateType> WithProperties for CellInstance<C>
[src]
type Key = String
Property key type.
fn with_properties<F, R>(&self, f: F) -> R where
F: FnOnce(Option<&PropertyStore<Self::Key>>) -> R,
[src]
F: FnOnce(Option<&PropertyStore<Self::Key>>) -> R,
fn with_properties_mut<F, R>(&self, f: F) -> R where
F: FnOnce(&mut PropertyStore<Self::Key>) -> R,
[src]
F: FnOnce(&mut PropertyStore<Self::Key>) -> R,
fn property<Q: ?Sized>(&self, key: &Q) -> Option<PropertyValue> where
Self::Key: Borrow<Q>,
Q: Eq + Hash,
[src]
Self::Key: Borrow<Q>,
Q: Eq + Hash,
fn property_str<Q: ?Sized>(&self, key: &Q) -> Option<Rc<String>> where
Self::Key: Borrow<Q>,
Q: Eq + Hash,
[src]
Self::Key: Borrow<Q>,
Q: Eq + Hash,
fn set_property<V: Into<PropertyValue>>(
&self,
key: Self::Key,
value: V
) -> Option<PropertyValue>
[src]
&self,
key: Self::Key,
value: V
) -> Option<PropertyValue>
Auto Trait Implementations
impl<C> !RefUnwindSafe for CellInstance<C>
impl<C> !Send for CellInstance<C>
impl<C> !Sync for CellInstance<C>
impl<C> Unpin for CellInstance<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for CellInstance<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> TextType for T where
T: Clone + Eq + Debug + Hash,
[src]
T: Clone + Eq + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,