Enum wavedrom::InCycleOffset
source · pub enum InCycleOffset {
Begin,
Quarter,
Half,
ThreeQuarter,
}
Expand description
The cycle offset within a single-clock cycle.
At the moment a cycle in divided into 4 quarters and you
Variants§
Implementations§
source§impl InCycleOffset
impl InCycleOffset
sourcepub fn width_offset(self, width: u32) -> u32
pub fn width_offset(self, width: u32) -> u32
Get the width knowning that a cycle cycle is width
units wide.
Trait Implementations§
source§impl Clone for InCycleOffset
impl Clone for InCycleOffset
source§fn clone(&self) -> InCycleOffset
fn clone(&self) -> InCycleOffset
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 InCycleOffset
impl Debug for InCycleOffset
source§impl Default for InCycleOffset
impl Default for InCycleOffset
source§fn default() -> InCycleOffset
fn default() -> InCycleOffset
Returns the “default value” for a type. Read more
source§impl Ord for InCycleOffset
impl Ord for InCycleOffset
source§fn cmp(&self, other: &InCycleOffset) -> Ordering
fn cmp(&self, other: &InCycleOffset) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InCycleOffset> for InCycleOffset
impl PartialEq<InCycleOffset> for InCycleOffset
source§fn eq(&self, other: &InCycleOffset) -> bool
fn eq(&self, other: &InCycleOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InCycleOffset> for InCycleOffset
impl PartialOrd<InCycleOffset> for InCycleOffset
source§fn partial_cmp(&self, other: &InCycleOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &InCycleOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InCycleOffset
impl Eq for InCycleOffset
impl StructuralEq for InCycleOffset
impl StructuralPartialEq for InCycleOffset
Auto Trait Implementations§
impl RefUnwindSafe for InCycleOffset
impl Send for InCycleOffset
impl Sync for InCycleOffset
impl Unpin for InCycleOffset
impl UnwindSafe for InCycleOffset
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