pub struct CodeCapacityPlanarCodeVerticalPartitionFour { /* private fields */ }Expand description
partition into 4 pieces: top left and right, bottom left and right
Implementations§
Trait Implementations§
Source§impl Default for CodeCapacityPlanarCodeVerticalPartitionFour
impl Default for CodeCapacityPlanarCodeVerticalPartitionFour
Source§fn default() -> CodeCapacityPlanarCodeVerticalPartitionFour
fn default() -> CodeCapacityPlanarCodeVerticalPartitionFour
Returns the “default value” for a type. Read more
Source§impl ExamplePartition for CodeCapacityPlanarCodeVerticalPartitionFour
impl ExamplePartition for CodeCapacityPlanarCodeVerticalPartitionFour
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 CodeCapacityPlanarCodeVerticalPartitionFour
impl RefUnwindSafe for CodeCapacityPlanarCodeVerticalPartitionFour
impl Send for CodeCapacityPlanarCodeVerticalPartitionFour
impl Sync for CodeCapacityPlanarCodeVerticalPartitionFour
impl Unpin for CodeCapacityPlanarCodeVerticalPartitionFour
impl UnwindSafe for CodeCapacityPlanarCodeVerticalPartitionFour
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