Struct scir::SliceOnePath
source · pub struct SliceOnePath(/* private fields */);
Expand description
A path to a nested SliceOne
.
Implementations§
source§impl SliceOnePath
impl SliceOnePath
sourcepub fn new(
instances: InstancePath,
tail: impl Into<SignalPathTail<SliceOne, NamedSliceOne>>
) -> Self
pub fn new( instances: InstancePath, tail: impl Into<SignalPathTail<SliceOne, NamedSliceOne>> ) -> Self
Creates a new SliceOnePath
.
sourcepub fn instances(&self) -> &InstancePath
pub fn instances(&self) -> &InstancePath
Returns the instance path associated with this path.
sourcepub fn instances_mut(&mut self) -> &mut InstancePath
pub fn instances_mut(&mut self) -> &mut InstancePath
Returns a mutable pointer to the instance path associated with this path.
sourcepub fn tail(&self) -> &SignalPathTail<SliceOne, NamedSliceOne>
pub fn tail(&self) -> &SignalPathTail<SliceOne, NamedSliceOne>
Returns the tail of this path.
The tail includes information on the signal that this path addresses.
Trait Implementations§
source§impl Clone for SliceOnePath
impl Clone for SliceOnePath
source§fn clone(&self) -> SliceOnePath
fn clone(&self) -> SliceOnePath
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 SliceOnePath
impl Debug for SliceOnePath
source§impl<'de> Deserialize<'de> for SliceOnePath
impl<'de> Deserialize<'de> for SliceOnePath
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 Hash for SliceOnePath
impl Hash for SliceOnePath
source§impl Ord for SliceOnePath
impl Ord for SliceOnePath
source§fn cmp(&self, other: &SliceOnePath) -> Ordering
fn cmp(&self, other: &SliceOnePath) -> 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 SliceOnePath
impl PartialEq for SliceOnePath
source§fn eq(&self, other: &SliceOnePath) -> bool
fn eq(&self, other: &SliceOnePath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SliceOnePath
impl PartialOrd for SliceOnePath
source§fn partial_cmp(&self, other: &SliceOnePath) -> Option<Ordering>
fn partial_cmp(&self, other: &SliceOnePath) -> 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 SliceOnePath
impl Serialize for SliceOnePath
impl Eq for SliceOnePath
impl StructuralPartialEq for SliceOnePath
Auto Trait Implementations§
impl RefUnwindSafe for SliceOnePath
impl Send for SliceOnePath
impl Sync for SliceOnePath
impl Unpin for SliceOnePath
impl UnwindSafe for SliceOnePath
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.