Struct wavedrom::SignalPath
source · pub struct SignalPath<'a> { /* private fields */ }
Expand description
The path given for a Signal
Implementations§
source§impl<'a> SignalPath<'a>
impl<'a> SignalPath<'a>
sourcepub fn new(
states: &[CycleState],
data: &'a [String],
period: NonZeroU16,
phase: CycleOffset
) -> Self
pub fn new( states: &[CycleState], data: &'a [String], period: NonZeroU16, phase: CycleOffset ) -> Self
Create a new SignalPath
with a set of parameters.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns whether the SignalPath
contains no states.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns amount of states that the SignalPath
contains.
sourcepub fn assemble_with_options(
&self,
options: PathAssembleOptions
) -> AssembledSignalPath
pub fn assemble_with_options( &self, options: PathAssembleOptions ) -> AssembledSignalPath
Assemble the SignalPath
into a AssembledSignalPath
with a set of options.
sourcepub fn assemble(&self) -> AssembledSignalPath
pub fn assemble(&self) -> AssembledSignalPath
Assemble the SignalPath
into a AssembledSignalPath
with the default options.
sourcepub fn iter(&'a self, options: PathAssembleOptions) -> SignalSegmentIter<'a> ⓘ
pub fn iter(&'a self, options: PathAssembleOptions) -> SignalSegmentIter<'a> ⓘ
Get a iterator over assembled signal segments
Trait Implementations§
source§impl<'a> Clone for SignalPath<'a>
impl<'a> Clone for SignalPath<'a>
source§fn clone(&self) -> SignalPath<'a>
fn clone(&self) -> SignalPath<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for SignalPath<'a>
impl<'a> Send for SignalPath<'a>
impl<'a> Sync for SignalPath<'a>
impl<'a> Unpin for SignalPath<'a>
impl<'a> UnwindSafe for SignalPath<'a>
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