Enum substrate::scir::SignalPathTail
source · pub enum SignalPathTail<I, N> {
Id(I),
Name(N),
}
Expand description
The end of a signal path.
Variants§
Implementations§
source§impl<I, N> SignalPathTail<I, N>
impl<I, N> SignalPathTail<I, N>
sourcepub fn unwrap_id(self) -> I
pub fn unwrap_id(self) -> I
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<&I>
pub fn get_id(&self) -> Option<&I>
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<I>
pub fn into_id(self) -> Option<I>
Returns the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn unwrap_name(self) -> N
pub fn unwrap_name(self) -> N
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<&N>
pub fn get_name(&self) -> Option<&N>
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<N>
pub fn into_name(self) -> Option<N>
Returns the value contained in this variant.
Returns None
if the enum value is not of the expected variant.
sourcepub fn as_ref(&self) -> SignalPathTail<&I, &N>
pub fn as_ref(&self) -> SignalPathTail<&I, &N>
Converts types to references.
For example, transforms a variant field with type T
to &T
.
sourcepub fn as_mut(&mut self) -> SignalPathTail<&mut I, &mut N>
pub fn as_mut(&mut self) -> SignalPathTail<&mut I, &mut N>
Converts types to mutable references.
For example, transforms a variant field with type T
to &mut T
.
source§impl SignalPathTail<Slice, NamedSlice>
impl SignalPathTail<Slice, NamedSlice>
sourcepub fn range(&self) -> Option<SliceRange>
pub fn range(&self) -> Option<SliceRange>
The range of indices indexed by this signal path tail.
Returns None
if this slice represents a single bit wire.
Trait Implementations§
source§impl<I, N> Clone for SignalPathTail<I, N>
impl<I, N> Clone for SignalPathTail<I, N>
source§fn clone(&self) -> SignalPathTail<I, N>
fn clone(&self) -> SignalPathTail<I, N>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<I, N> Debug for SignalPathTail<I, N>
impl<I, N> Debug for SignalPathTail<I, N>
source§impl<'de, I, N> Deserialize<'de> for SignalPathTail<I, N>where
I: Deserialize<'de>,
N: Deserialize<'de>,
impl<'de, I, N> Deserialize<'de> for SignalPathTail<I, N>where
I: Deserialize<'de>,
N: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SignalPathTail<I, N>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SignalPathTail<I, N>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<NamedSlice> for SignalPathTail<Slice, NamedSlice>
impl From<NamedSlice> for SignalPathTail<Slice, NamedSlice>
source§fn from(value: NamedSlice) -> SignalPathTail<Slice, NamedSlice>
fn from(value: NamedSlice) -> SignalPathTail<Slice, NamedSlice>
source§impl From<NamedSliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
impl From<NamedSliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
source§fn from(value: NamedSliceOne) -> SignalPathTail<SliceOne, NamedSliceOne>
fn from(value: NamedSliceOne) -> SignalPathTail<SliceOne, NamedSliceOne>
source§impl From<Slice> for SignalPathTail<Slice, NamedSlice>
impl From<Slice> for SignalPathTail<Slice, NamedSlice>
source§fn from(value: Slice) -> SignalPathTail<Slice, NamedSlice>
fn from(value: Slice) -> SignalPathTail<Slice, NamedSlice>
source§impl From<SliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
impl From<SliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
source§fn from(value: SliceOne) -> SignalPathTail<SliceOne, NamedSliceOne>
fn from(value: SliceOne) -> SignalPathTail<SliceOne, NamedSliceOne>
source§impl<I, N> Hash for SignalPathTail<I, N>
impl<I, N> Hash for SignalPathTail<I, N>
source§impl<I, N> Ord for SignalPathTail<I, N>
impl<I, N> Ord for SignalPathTail<I, N>
source§fn cmp(&self, other: &SignalPathTail<I, N>) -> Ordering
fn cmp(&self, other: &SignalPathTail<I, N>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<I, N> PartialEq for SignalPathTail<I, N>
impl<I, N> PartialEq for SignalPathTail<I, N>
source§fn eq(&self, other: &SignalPathTail<I, N>) -> bool
fn eq(&self, other: &SignalPathTail<I, N>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<I, N> PartialOrd for SignalPathTail<I, N>where
I: PartialOrd,
N: PartialOrd,
impl<I, N> PartialOrd for SignalPathTail<I, N>where
I: PartialOrd,
N: PartialOrd,
source§fn partial_cmp(&self, other: &SignalPathTail<I, N>) -> Option<Ordering>
fn partial_cmp(&self, other: &SignalPathTail<I, N>) -> 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<I, N> Serialize for SignalPathTail<I, N>
impl<I, N> Serialize for SignalPathTail<I, N>
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<I, N> Eq for SignalPathTail<I, N>
impl<I, N> StructuralPartialEq for SignalPathTail<I, N>
Auto Trait Implementations§
impl<I, N> RefUnwindSafe for SignalPathTail<I, N>where
I: RefUnwindSafe,
N: RefUnwindSafe,
impl<I, N> Send for SignalPathTail<I, N>
impl<I, N> Sync for SignalPathTail<I, N>
impl<I, N> Unpin for SignalPathTail<I, N>
impl<I, N> UnwindSafe for SignalPathTail<I, N>where
I: UnwindSafe,
N: 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
§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