Enum substrate::scir::InstancePathCell
source · pub enum InstancePathCell {
Id(CellId),
Name(ArcStr),
}
Expand description
The cell within an InstancePath
.
Variants§
Implementations§
source§impl InstancePathCell
impl InstancePathCell
sourcepub fn unwrap_id(self) -> CellId
pub fn unwrap_id(self) -> CellId
Returns the value contained in this variant.
§Panics
Panics if the enum value is not of the expected variant.
sourcepub fn get_id(&self) -> Option<&CellId>
pub fn get_id(&self) -> Option<&CellId>
Returns a reference to the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn into_id(self) -> Option<CellId>
pub fn into_id(self) -> Option<CellId>
Returns the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn unwrap_name(self) -> ArcStr
pub fn unwrap_name(self) -> ArcStr
Returns the value contained in this variant.
§Panics
Panics if the enum value is not of the expected variant.
sourcepub fn get_name(&self) -> Option<&ArcStr>
pub fn get_name(&self) -> Option<&ArcStr>
Returns a reference to the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn into_name(self) -> Option<ArcStr>
pub fn into_name(self) -> Option<ArcStr>
Returns the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn as_ref(&self) -> InstancePathCellRef<&CellId, &ArcStr>
pub fn as_ref(&self) -> InstancePathCellRef<&CellId, &ArcStr>
Converts types to references.
For example, transforms a variant field with type T
to &T
.
sourcepub fn as_mut(&mut self) -> InstancePathCellRef<&mut CellId, &mut ArcStr>
pub fn as_mut(&mut self) -> InstancePathCellRef<&mut CellId, &mut ArcStr>
Converts types to mutable references.
For example, transforms a variant field with type T
to &mut T
.
Trait Implementations§
source§impl Clone for InstancePathCell
impl Clone for InstancePathCell
source§fn clone(&self) -> InstancePathCell
fn clone(&self) -> InstancePathCell
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstancePathCell
impl Debug for InstancePathCell
source§impl<'de> Deserialize<'de> for InstancePathCell
impl<'de> Deserialize<'de> for InstancePathCell
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InstancePathCell, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InstancePathCell, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<CellId> for InstancePathCell
impl From<CellId> for InstancePathCell
source§fn from(value: CellId) -> InstancePathCell
fn from(value: CellId) -> InstancePathCell
source§impl<S> From<S> for InstancePathCellwhere
S: Into<ArcStr>,
impl<S> From<S> for InstancePathCellwhere
S: Into<ArcStr>,
source§fn from(value: S) -> InstancePathCell
fn from(value: S) -> InstancePathCell
source§impl Hash for InstancePathCell
impl Hash for InstancePathCell
source§impl Ord for InstancePathCell
impl Ord for InstancePathCell
source§fn cmp(&self, other: &InstancePathCell) -> Ordering
fn cmp(&self, other: &InstancePathCell) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InstancePathCell
impl PartialEq for InstancePathCell
source§fn eq(&self, other: &InstancePathCell) -> bool
fn eq(&self, other: &InstancePathCell) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstancePathCell
impl PartialOrd for InstancePathCell
source§fn partial_cmp(&self, other: &InstancePathCell) -> Option<Ordering>
fn partial_cmp(&self, other: &InstancePathCell) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for InstancePathCell
impl Serialize for InstancePathCell
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for InstancePathCell
impl StructuralPartialEq for InstancePathCell
Auto Trait Implementations§
impl RefUnwindSafe for InstancePathCell
impl Send for InstancePathCell
impl Sync for InstancePathCell
impl Unpin for InstancePathCell
impl UnwindSafe for InstancePathCell
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<T, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Flipped<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Flipped<T>) -> U
fn from_layout_type(other: &Flipped<T>) -> U
source§impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<InOut<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &InOut<T>) -> U
fn from_layout_type(other: &InOut<T>) -> U
source§impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Input<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Input<T>) -> U
fn from_layout_type(other: &Input<T>) -> U
source§impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
impl<T, U> CustomHardwareType<Output<T>> for Uwhere
U: CustomHardwareType<T>,
T: HardwareType,
source§fn from_layout_type(other: &Output<T>) -> U
fn from_layout_type(other: &Output<T>) -> U
§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>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<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>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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
§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
key
and return true
if they are equal.§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>
T
in a tonic::Request