pub struct PhenomenologicalPlanarCodeTimePartition { /* private fields */ }Expand description
evenly partition along the time axis
Implementations§
Trait Implementations§
Source§impl ExamplePartition for PhenomenologicalPlanarCodeTimePartition
impl ExamplePartition for PhenomenologicalPlanarCodeTimePartition
Source§fn build_partition(&mut self, code: &dyn ExampleCode) -> PartitionConfig
fn build_partition(&mut self, code: &dyn ExampleCode) -> PartitionConfig
build the partition, using the indices after reordered vertices
Source§fn build_apply(&mut self, code: &mut dyn ExampleCode) -> PartitionConfig
fn build_apply(&mut self, code: &mut dyn ExampleCode) -> PartitionConfig
customize partition, note that this process may re-order the vertices in
codefn re_index_defect_vertices( &mut self, code: &dyn ExampleCode, defect_vertices: &[VertexIndex], ) -> Vec<VertexIndex> ⓘ
Source§fn build_reordered_vertices(
&mut self,
_code: &dyn ExampleCode,
) -> Option<Vec<VertexIndex>>
fn build_reordered_vertices( &mut self, _code: &dyn ExampleCode, ) -> Option<Vec<VertexIndex>>
build reorder vertices
Auto Trait Implementations§
impl Freeze for PhenomenologicalPlanarCodeTimePartition
impl RefUnwindSafe for PhenomenologicalPlanarCodeTimePartition
impl Send for PhenomenologicalPlanarCodeTimePartition
impl Sync for PhenomenologicalPlanarCodeTimePartition
impl Unpin for PhenomenologicalPlanarCodeTimePartition
impl UnwindSafe for PhenomenologicalPlanarCodeTimePartition
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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