pub struct InferredNeighbor {
pub comp_id: String,
pub terminal: &'static str,
pub neighbor_id: Option<String>,
pub role: NeighborRole,
}Expand description
An inferred role for one neighbour of one active-device terminal.
Fields§
§comp_id: StringOwning active device id (e.g. “V1”).
terminal: &'static strTerminal name (e.g. “plate”).
neighbor_id: Option<String>Neighbour component id across the incident edge (e.g. “R_plate”),
or None for a connection straight to a reserved net / rail.
role: NeighborRoleInferred role of the neighbour.
Trait Implementations§
Source§impl Clone for InferredNeighbor
impl Clone for InferredNeighbor
Source§fn clone(&self) -> InferredNeighbor
fn clone(&self) -> InferredNeighbor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InferredNeighbor
impl Debug for InferredNeighbor
impl Eq for InferredNeighbor
Source§impl PartialEq for InferredNeighbor
impl PartialEq for InferredNeighbor
Source§fn eq(&self, other: &InferredNeighbor) -> bool
fn eq(&self, other: &InferredNeighbor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InferredNeighbor
Auto Trait Implementations§
impl Freeze for InferredNeighbor
impl RefUnwindSafe for InferredNeighbor
impl Send for InferredNeighbor
impl Sync for InferredNeighbor
impl Unpin for InferredNeighbor
impl UnsafeUnpin for InferredNeighbor
impl UnwindSafe for InferredNeighbor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.