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