Struct scir::NamedSlice
source · pub struct NamedSlice { /* private fields */ }
Expand description
A single bit wire or a portion of a bus signal addressed by name.
Implementations§
source§impl NamedSlice
impl NamedSlice
sourcepub fn new(signal: impl Into<ArcStr>) -> Self
pub fn new(signal: impl Into<ArcStr>) -> Self
Creates a new NamedSlice
.
sourcepub fn with_range(
signal: impl Into<ArcStr>,
range: impl Into<SliceRange>
) -> Self
pub fn with_range( signal: impl Into<ArcStr>, range: impl Into<SliceRange> ) -> Self
Creates a new NamedSlice
with the given range.
sourcepub fn range(&self) -> Option<SliceRange>
pub fn range(&self) -> Option<SliceRange>
The range of indices indexed by this slice.
Returns None
if this slice represents a single bit wire.
Trait Implementations§
source§impl Clone for NamedSlice
impl Clone for NamedSlice
source§fn clone(&self) -> NamedSlice
fn clone(&self) -> NamedSlice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NamedSlice
impl Debug for NamedSlice
source§impl<'de> Deserialize<'de> for NamedSlice
impl<'de> Deserialize<'de> for NamedSlice
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
source§impl From<NamedSlice> for SignalPathTail<Slice, NamedSlice>
impl From<NamedSlice> for SignalPathTail<Slice, NamedSlice>
source§fn from(value: NamedSlice) -> Self
fn from(value: NamedSlice) -> Self
Converts to this type from the input type.
source§impl From<NamedSliceOne> for NamedSlice
impl From<NamedSliceOne> for NamedSlice
source§fn from(value: NamedSliceOne) -> Self
fn from(value: NamedSliceOne) -> Self
Converts to this type from the input type.
source§impl Hash for NamedSlice
impl Hash for NamedSlice
source§impl IndexOwned<Range<usize>> for NamedSlice
impl IndexOwned<Range<usize>> for NamedSlice
source§impl IndexOwned<RangeFrom<usize>> for NamedSlice
impl IndexOwned<RangeFrom<usize>> for NamedSlice
source§impl IndexOwned<RangeFull> for NamedSlice
impl IndexOwned<RangeFull> for NamedSlice
source§impl IndexOwned<RangeInclusive<usize>> for NamedSlice
impl IndexOwned<RangeInclusive<usize>> for NamedSlice
§type Output = NamedSlice
type Output = NamedSlice
The result of the indexing operation.
source§impl IndexOwned<RangeTo<usize>> for NamedSlice
impl IndexOwned<RangeTo<usize>> for NamedSlice
source§impl IndexOwned<RangeToInclusive<usize>> for NamedSlice
impl IndexOwned<RangeToInclusive<usize>> for NamedSlice
§type Output = NamedSlice
type Output = NamedSlice
The result of the indexing operation.
source§impl IndexOwned<usize> for NamedSlice
impl IndexOwned<usize> for NamedSlice
source§impl PartialEq for NamedSlice
impl PartialEq for NamedSlice
source§fn eq(&self, other: &NamedSlice) -> bool
fn eq(&self, other: &NamedSlice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedSlice
impl Serialize for NamedSlice
source§impl TryFrom<NamedSlice> for NamedSliceOne
impl TryFrom<NamedSlice> for NamedSliceOne
impl Eq for NamedSlice
impl StructuralPartialEq for NamedSlice
Auto Trait Implementations§
impl RefUnwindSafe for NamedSlice
impl Send for NamedSlice
impl Sync for NamedSlice
impl Unpin for NamedSlice
impl UnwindSafe for NamedSlice
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<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.