pub struct OutputWaveform {
pub t: Arc<Vec<f64>>,
pub x: Arc<Vec<f64>>,
}
Expand description
An output transient waveform.
Fields§
§t: Arc<Vec<f64>>
Time samples.
x: Arc<Vec<f64>>
Values corresponding to time samples in t
.
Implementations§
Source§impl OutputWaveform
impl OutputWaveform
Sourcepub fn as_ref(&self) -> WaveformRef<'_, f64>
pub fn as_ref(&self) -> WaveformRef<'_, f64>
Converts an OutputWaveform
to a WaveformRef
.
Trait Implementations§
Source§impl Clone for OutputWaveform
impl Clone for OutputWaveform
Source§fn clone(&self) -> OutputWaveform
fn clone(&self) -> OutputWaveform
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 OutputWaveform
impl Debug for OutputWaveform
Source§impl<'de> Deserialize<'de> for OutputWaveform
impl<'de> Deserialize<'de> for OutputWaveform
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 PartialEq for OutputWaveform
impl PartialEq for OutputWaveform
Source§impl PartialOrd for OutputWaveform
impl PartialOrd for OutputWaveform
Source§impl Serialize for OutputWaveform
impl Serialize for OutputWaveform
Source§impl TimeWaveform for OutputWaveform
impl TimeWaveform for OutputWaveform
Source§fn get(&self, idx: usize) -> Option<TimePoint<f64>>
fn get(&self, idx: usize) -> Option<TimePoint<f64>>
Get the value of the waveform at the given index.
Source§fn first_t(&self) -> Option<Self::Data>
fn first_t(&self) -> Option<Self::Data>
The time associated with the first point in the waveform.
Source§fn first_x(&self) -> Option<Self::Data>
fn first_x(&self) -> Option<Self::Data>
The value associated with the first point in the waveform.
Source§fn last_t(&self) -> Option<Self::Data>
fn last_t(&self) -> Option<Self::Data>
The time associated with the last point in the waveform.
Source§fn last_x(&self) -> Option<Self::Data>
fn last_x(&self) -> Option<Self::Data>
The value associated with the last point in the waveform.
Source§fn edges(&self, threshold: Self::Data) -> Edges<'_, Self, Self::Data>
fn edges(&self, threshold: Self::Data) -> Edges<'_, Self, Self::Data>
Returns an iterator over the edges in the waveform. Read more
Source§fn transitions(
&self,
low_threshold: Self::Data,
high_threshold: Self::Data,
) -> Transitions<'_, Self, Self::Data>
fn transitions( &self, low_threshold: Self::Data, high_threshold: Self::Data, ) -> Transitions<'_, Self, Self::Data>
Returns an iterator over the transitions in the waveform. Read more
Source§fn values(&self) -> Values<'_, Self>
fn values(&self) -> Values<'_, Self>
Returns an iterator over the values in the waveform. Read more
Source§fn time_index_before(&self, t: Self::Data) -> Option<usize>
fn time_index_before(&self, t: Self::Data) -> Option<usize>
Returns the index of the last point in the waveform with a time before
t
.Source§fn sample_at(&self, t: Self::Data) -> Self::Data
fn sample_at(&self, t: Self::Data) -> Self::Data
Retrieves the value of the waveform at the given time. Read more
impl StructuralPartialEq for OutputWaveform
Auto Trait Implementations§
impl Freeze for OutputWaveform
impl RefUnwindSafe for OutputWaveform
impl Send for OutputWaveform
impl Sync for OutputWaveform
impl Unpin for OutputWaveform
impl UnwindSafe for OutputWaveform
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<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> 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 moreSource§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