#[non_exhaustive]pub enum DominatorTreeError {
EntryOutOfRange {
entry: u32,
node_count: u32,
},
BadOffsets {
message: String,
},
TargetOutOfRange {
index: usize,
target: u32,
node_count: u32,
},
NonMonotonicOffsets {
index: usize,
},
}Expand description
Errors from dominator-tree construction.
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.
EntryOutOfRange
The requested entry node is outside 0..node_count.
BadOffsets
CSR offset buffer length is inconsistent with node_count.
TargetOutOfRange
CSR target buffer references a node outside the valid range.
Fields
NonMonotonicOffsets
Monotonicity violation in CSR offsets.
Trait Implementations§
Source§impl Clone for DominatorTreeError
impl Clone for DominatorTreeError
Source§fn clone(&self) -> DominatorTreeError
fn clone(&self) -> DominatorTreeError
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 moreSource§impl Debug for DominatorTreeError
impl Debug for DominatorTreeError
impl Eq for DominatorTreeError
Source§impl PartialEq for DominatorTreeError
impl PartialEq for DominatorTreeError
impl StructuralPartialEq for DominatorTreeError
Auto Trait Implementations§
impl Freeze for DominatorTreeError
impl RefUnwindSafe for DominatorTreeError
impl Send for DominatorTreeError
impl Sync for DominatorTreeError
impl Unpin for DominatorTreeError
impl UnsafeUnpin for DominatorTreeError
impl UnwindSafe for DominatorTreeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.