Struct scir::NamedSliceOne
source · pub struct NamedSliceOne { /* private fields */ }
Expand description
A single bit wire or a single bit of a bus signal addressed by name.
Implementations§
source§impl NamedSliceOne
impl NamedSliceOne
sourcepub fn new(signal: impl Into<ArcStr>) -> Self
pub fn new(signal: impl Into<ArcStr>) -> Self
Creates a new NamedSliceOne
.
sourcepub fn with_index(signal: ArcStr, index: usize) -> Self
pub fn with_index(signal: ArcStr, index: usize) -> Self
Creates a new NamedSliceOne
with the given index.
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 NamedSliceOne
impl Clone for NamedSliceOne
source§fn clone(&self) -> NamedSliceOne
fn clone(&self) -> NamedSliceOne
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 NamedSliceOne
impl Debug for NamedSliceOne
source§impl<'de> Deserialize<'de> for NamedSliceOne
impl<'de> Deserialize<'de> for NamedSliceOne
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<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 From<NamedSliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
impl From<NamedSliceOne> for SignalPathTail<SliceOne, NamedSliceOne>
source§fn from(value: NamedSliceOne) -> Self
fn from(value: NamedSliceOne) -> Self
Converts to this type from the input type.
source§impl Hash for NamedSliceOne
impl Hash for NamedSliceOne
source§impl Ord for NamedSliceOne
impl Ord for NamedSliceOne
source§fn cmp(&self, other: &NamedSliceOne) -> Ordering
fn cmp(&self, other: &NamedSliceOne) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NamedSliceOne
impl PartialEq for NamedSliceOne
source§fn eq(&self, other: &NamedSliceOne) -> bool
fn eq(&self, other: &NamedSliceOne) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NamedSliceOne
impl PartialOrd for NamedSliceOne
source§fn partial_cmp(&self, other: &NamedSliceOne) -> Option<Ordering>
fn partial_cmp(&self, other: &NamedSliceOne) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NamedSliceOne
impl Serialize for NamedSliceOne
source§impl TryFrom<NamedSlice> for NamedSliceOne
impl TryFrom<NamedSlice> for NamedSliceOne
impl Eq for NamedSliceOne
impl StructuralPartialEq for NamedSliceOne
Auto Trait Implementations§
impl RefUnwindSafe for NamedSliceOne
impl Send for NamedSliceOne
impl Sync for NamedSliceOne
impl Unpin for NamedSliceOne
impl UnwindSafe for NamedSliceOne
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.