Struct scir::SignalInfo
source · pub struct SignalInfo {
pub id: SignalId,
pub name: ArcStr,
pub width: Option<usize>,
pub port: Option<usize>,
}
Expand description
Information about a signal in a cell.
Fields§
§id: SignalId
The ID representing this signal.
name: ArcStr
The name of this signal.
width: Option<usize>
The width of this signal, if this signal is a bus.
For single-wire signals, this will be None
.
port: Option<usize>
Set to Some(..)
if this signal corresponds to a port.
The contained usize
represents the index at which the port
corresponding to this signal starts.
Implementations§
Trait Implementations§
source§impl Clone for SignalInfo
impl Clone for SignalInfo
source§fn clone(&self) -> SignalInfo
fn clone(&self) -> SignalInfo
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 SignalInfo
impl Debug for SignalInfo
source§impl<'de> Deserialize<'de> for SignalInfo
impl<'de> Deserialize<'de> for SignalInfo
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
Auto Trait Implementations§
impl RefUnwindSafe for SignalInfo
impl Send for SignalInfo
impl Sync for SignalInfo
impl Unpin for SignalInfo
impl UnwindSafe for SignalInfo
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