pub struct OrderedShape {
pub inner: Vec<(String, usize)>,
}
Expand description
A way to keep track of the log2 heights of some set of chips and in canonical order.
Fields§
§inner: Vec<(String, usize)>
The inner data.
Implementations§
Source§impl OrderedShape
impl OrderedShape
Sourcepub fn from_traces<V: Clone + Send + Sync>(
traces: &[(String, RowMajorMatrix<V>)],
) -> Self
pub fn from_traces<V: Clone + Send + Sync>( traces: &[(String, RowMajorMatrix<V>)], ) -> Self
Create an OrderedShape
from a set of traces.
Sourcepub fn from_log2_heights(traces: &[(String, usize)]) -> Self
pub fn from_log2_heights(traces: &[(String, usize)]) -> Self
Create an OrderedShape
from a set of log2 heights.
Trait Implementations§
Source§impl Clone for OrderedShape
impl Clone for OrderedShape
Source§fn clone(&self) -> OrderedShape
fn clone(&self) -> OrderedShape
Returns a duplicate 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 OrderedShape
impl Debug for OrderedShape
Source§impl<'de> Deserialize<'de> for OrderedShape
impl<'de> Deserialize<'de> for OrderedShape
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 Display for OrderedShape
impl Display for OrderedShape
Source§impl FromIterator<(String, usize)> for OrderedShape
impl FromIterator<(String, usize)> for OrderedShape
Source§impl Hash for OrderedShape
impl Hash for OrderedShape
Source§impl IntoIterator for OrderedShape
impl IntoIterator for OrderedShape
Source§impl Ord for OrderedShape
impl Ord for OrderedShape
Source§fn cmp(&self, other: &OrderedShape) -> Ordering
fn cmp(&self, other: &OrderedShape) -> 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 for OrderedShape
impl PartialEq for OrderedShape
Source§impl PartialOrd for OrderedShape
impl PartialOrd for OrderedShape
Source§impl Serialize for OrderedShape
impl Serialize for OrderedShape
impl Eq for OrderedShape
impl StructuralPartialEq for OrderedShape
Auto Trait Implementations§
impl Freeze for OrderedShape
impl RefUnwindSafe for OrderedShape
impl Send for OrderedShape
impl Sync for OrderedShape
impl Unpin for OrderedShape
impl UnwindSafe for OrderedShape
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more