pub struct DigitalWaveformBuilder<T> { /* private fields */ }
Expand description
A builder for creating clocked digital waveforms.
Implementations§
Source§impl<T> DigitalWaveformBuilder<T>
impl<T> DigitalWaveformBuilder<T>
Sourcepub fn new(params: impl Into<DigitalWaveformParams<T>>) -> Self
pub fn new(params: impl Into<DigitalWaveformParams<T>>) -> Self
Creates a new builder with the given parameters.
Sourcepub fn add_hi(&mut self) -> &mut Self
pub fn add_hi(&mut self) -> &mut Self
Adds one cycle of logical high to the waveform.
If the waveform was previously logical low, the waveform will transition to logical high with a duration governed by the rise time parameter.
Sourcepub fn add_lo(&mut self) -> &mut Self
pub fn add_lo(&mut self) -> &mut Self
Adds one cycle of logical low to the waveform.
If the waveform was previously logical high, the waveform will transition to logical low with a duration governed by the fall time parameter.
Sourcepub fn add(&mut self, bit: bool) -> &mut Self
pub fn add(&mut self, bit: bool) -> &mut Self
Adds one cycle of the given bit value to the waveform.
If bit
is true
, this is equivalent to calling DigitalWaveformBuilder::add_hi
.
If bit
is false
, this is equivalent to calling DigitalWaveformBuilder::add_lo
.
Auto Trait Implementations§
impl<T> Freeze for DigitalWaveformBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for DigitalWaveformBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for DigitalWaveformBuilder<T>where
T: Send,
impl<T> Sync for DigitalWaveformBuilder<T>where
T: Sync,
impl<T> Unpin for DigitalWaveformBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for DigitalWaveformBuilder<T>where
T: 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request