#[non_exhaustive]pub enum ArchitectureStatePartitionError {
EmptyPlan,
EmptyRange {
start: usize,
end: usize,
},
RangeOutOfBounds {
start: usize,
end: usize,
layers: usize,
},
OverlappingRange {
start: usize,
frontier: usize,
},
UnassignedLayer {
layer: usize,
},
UnknownGroup {
group: usize,
},
GroupLengthMismatch {
group: usize,
start: usize,
end: usize,
units: usize,
},
DiscontiguousSelection {
frontier: usize,
start: usize,
},
InvalidLayout(String),
}Expand description
Invalid architecture-authored mutable-state partition policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyPlan
The plan contains no placement rules.
EmptyRange
A rule selected no state layers.
RangeOutOfBounds
A rule selected state layers outside the complete layout.
Fields
OverlappingRange
Two rules selected the same state layer.
Fields
UnassignedLayer
No rule selected one or more state layers.
UnknownGroup
A unit-aligned rule named a nonexistent execution group.
GroupLengthMismatch
A unit-aligned state range and its execution group have different lengths.
Fields
DiscontiguousSelection
This partition’s selected state ranges cannot use the contiguous state representation.
Fields
InvalidLayout(String)
The selected state layout could not be sliced from the complete layout.
Trait Implementations§
Source§impl Clone for ArchitectureStatePartitionError
impl Clone for ArchitectureStatePartitionError
Source§fn clone(&self) -> ArchitectureStatePartitionError
fn clone(&self) -> ArchitectureStatePartitionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for ArchitectureStatePartitionError
Source§impl Error for ArchitectureStatePartitionError
impl Error for ArchitectureStatePartitionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ArchitectureStatePartitionError
Auto Trait Implementations§
impl Freeze for ArchitectureStatePartitionError
impl RefUnwindSafe for ArchitectureStatePartitionError
impl Send for ArchitectureStatePartitionError
impl Sync for ArchitectureStatePartitionError
impl Unpin for ArchitectureStatePartitionError
impl UnsafeUnpin for ArchitectureStatePartitionError
impl UnwindSafe for ArchitectureStatePartitionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more