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