#[non_exhaustive]pub enum FrontierError {
BadShape {
name: &'static str,
node_count: u32,
expected_words: usize,
actual_words: usize,
},
PopcountOverflow {
frontier_words: usize,
},
Allocation {
name: &'static str,
requested_words: usize,
source: String,
},
QueueCapacity {
node_count: u32,
capacity: usize,
required: u32,
},
QueueCountMismatch {
node_count: u32,
expected: u32,
observed: u32,
},
}Expand description
Error returned by packed-frontier helpers.
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.
BadShape
A frontier slice length does not match bitset_words(node_count).
Fields
PopcountOverflow
A popcount exceeded the compact u32 count representation.
Allocation
Caller-owned output frontier could not reserve enough storage.
Fields
QueueCapacity
A compact frontier queue cannot hold all active in-domain bits.
Fields
QueueCountMismatch
Caller-provided active-bit count disagrees with the frontier bits.
Trait Implementations§
Source§impl Clone for FrontierError
impl Clone for FrontierError
Source§fn clone(&self) -> FrontierError
fn clone(&self) -> FrontierError
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 FrontierError
impl Debug for FrontierError
Source§impl Display for FrontierError
impl Display for FrontierError
impl Eq for FrontierError
Source§impl Error for FrontierError
impl Error for FrontierError
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()
Source§impl PartialEq for FrontierError
impl PartialEq for FrontierError
impl StructuralPartialEq for FrontierError
Auto Trait Implementations§
impl Freeze for FrontierError
impl RefUnwindSafe for FrontierError
impl Send for FrontierError
impl Sync for FrontierError
impl Unpin for FrontierError
impl UnsafeUnpin for FrontierError
impl UnwindSafe for FrontierError
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.