pub struct CodeCapacityRepetitionCodePartitionHalf { /* private fields */ }Expand description
partition into top half and bottom half
Implementations§
Source§impl CodeCapacityRepetitionCodePartitionHalf
impl CodeCapacityRepetitionCodePartitionHalf
pub fn new(d: VertexNum, partition_index: VertexIndex) -> Self
Trait Implementations§
Source§impl Default for CodeCapacityRepetitionCodePartitionHalf
impl Default for CodeCapacityRepetitionCodePartitionHalf
Source§fn default() -> CodeCapacityRepetitionCodePartitionHalf
fn default() -> CodeCapacityRepetitionCodePartitionHalf
Returns the “default value” for a type. Read more
Source§impl ExamplePartition for CodeCapacityRepetitionCodePartitionHalf
impl ExamplePartition for CodeCapacityRepetitionCodePartitionHalf
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
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> ⓘ
Auto Trait Implementations§
impl Freeze for CodeCapacityRepetitionCodePartitionHalf
impl RefUnwindSafe for CodeCapacityRepetitionCodePartitionHalf
impl Send for CodeCapacityRepetitionCodePartitionHalf
impl Sync for CodeCapacityRepetitionCodePartitionHalf
impl Unpin for CodeCapacityRepetitionCodePartitionHalf
impl UnwindSafe for CodeCapacityRepetitionCodePartitionHalf
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