Struct libreda_sta::models::clock_tag::SignalWithClock
source · pub struct SignalWithClock<S> { /* private fields */ }Expand description
Signal representation wich can keep track of the clock(s) which launch the signal transition.
Implementations§
source§impl<S> SignalWithClock<S>
impl<S> SignalWithClock<S>
sourcepub fn with_clock_id(self, clock_id: Option<ClockId>) -> Self
pub fn with_clock_id(self, clock_id: Option<ClockId>) -> Self
Set the ID of the clock which triggers this signal.
sourcepub fn set_clock_id(&mut self, clock_id: Option<ClockId>)
pub fn set_clock_id(&mut self, clock_id: Option<ClockId>)
Set or clear the associated clock ID.
sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Get the underlying signal data.
Trait Implementations§
source§impl<S: Clone> Clone for SignalWithClock<S>
impl<S: Clone> Clone for SignalWithClock<S>
source§fn clone(&self) -> SignalWithClock<S>
fn clone(&self) -> SignalWithClock<S>
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<S: Debug> Debug for SignalWithClock<S>
impl<S: Debug> Debug for SignalWithClock<S>
source§impl<S> Deref for SignalWithClock<S>
impl<S> Deref for SignalWithClock<S>
source§impl<S: Hash> Hash for SignalWithClock<S>
impl<S: Hash> Hash for SignalWithClock<S>
source§impl<S: PartialEq> PartialEq for SignalWithClock<S>
impl<S: PartialEq> PartialEq for SignalWithClock<S>
source§fn eq(&self, other: &SignalWithClock<S>) -> bool
fn eq(&self, other: &SignalWithClock<S>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<S> Signal for SignalWithClock<S>where
S: Signal,
impl<S> Signal for SignalWithClock<S>where
S: Signal,
§type LogicValue = <S as Signal>::LogicValue
type LogicValue = <S as Signal>::LogicValue
Type of logic value.
Typically this might be a three-valued type which represents logical
0, 1 and ‘unknown’.
The default is typically ‘unknown’.
This is used to specify static input signals when evaluating cell delays or constraints.source§fn logic_value(&self) -> Self::LogicValue
fn logic_value(&self) -> Self::LogicValue
Get the target value of a signal.
source§fn transition_type(&self) -> SignalTransitionType
fn transition_type(&self) -> SignalTransitionType
Get the possible type of transition for this signal.
source§fn with_transition_type(self, trans: SignalTransitionType) -> Self
fn with_transition_type(self, trans: SignalTransitionType) -> Self
Change or specify the edge polarity of the transition.
impl<S: Copy> Copy for SignalWithClock<S>
impl<S: Eq> Eq for SignalWithClock<S>
impl<S> StructuralPartialEq for SignalWithClock<S>
Auto Trait Implementations§
impl<S> Freeze for SignalWithClock<S>where
S: Freeze,
impl<S> RefUnwindSafe for SignalWithClock<S>where
S: RefUnwindSafe,
impl<S> Send for SignalWithClock<S>where
S: Send,
impl<S> Sync for SignalWithClock<S>where
S: Sync,
impl<S> Unpin for SignalWithClock<S>where
S: Unpin,
impl<S> UnwindSafe for SignalWithClock<S>where
S: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more