#[non_exhaustive]pub enum DetectorBundleError {
UnknownBundle(DetectorBundleId),
BindingArity {
bundle: DetectorBundleId,
expected: usize,
actual: usize,
},
InvalidLocalOwner {
owner: u32,
owners: usize,
},
UnknownBoundInstance {
bundle: DetectorBundleId,
owner: u32,
instance: TemplateInstanceId,
},
OwnerTemplateMismatch {
bundle: DetectorBundleId,
owner: u32,
instance: TemplateInstanceId,
expected: TemplateId,
actual: TemplateId,
},
CountOverflow,
}Expand description
Local structure errors found before any detector rows are expanded.
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.
UnknownBundle(DetectorBundleId)
A node use refers to a bundle absent from the program pool.
BindingArity
A node use binds a different number of instances than the bundle signature.
Fields
§
bundle: DetectorBundleIdReferenced bundle.
InvalidLocalOwner
A bundle row references a local owner slot outside its signature.
UnknownBoundInstance
A bound instance id has no known template placement.
OwnerTemplateMismatch
A bound instance uses a different template than its owner slot declares.
Fields
§
bundle: DetectorBundleIdReferenced bundle.
§
instance: TemplateInstanceIdBound instance id.
§
expected: TemplateIdTemplate declared by the bundle.
§
actual: TemplateIdActual instance template.
CountOverflow
A count or address exceeds its integer representation.
Trait Implementations§
Source§impl Clone for DetectorBundleError
impl Clone for DetectorBundleError
Source§fn clone(&self) -> DetectorBundleError
fn clone(&self) -> DetectorBundleError
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 DetectorBundleError
impl Debug for DetectorBundleError
Source§impl Display for DetectorBundleError
impl Display for DetectorBundleError
impl Eq for DetectorBundleError
Source§impl Error for DetectorBundleError
impl Error for DetectorBundleError
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 From<DetectorBundleError> for ProgramSliceError
impl From<DetectorBundleError> for ProgramSliceError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl From<DetectorBundleError> for EditError
impl From<DetectorBundleError> for EditError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl From<DetectorBundleError> for FlattenError
impl From<DetectorBundleError> for FlattenError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl From<DetectorBundleError> for NodeTemplateInstanceMergeError
impl From<DetectorBundleError> for NodeTemplateInstanceMergeError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl From<DetectorBundleError> for BloqValidationError
impl From<DetectorBundleError> for BloqValidationError
Source§fn from(source: DetectorBundleError) -> Self
fn from(source: DetectorBundleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DetectorBundleError
impl PartialEq for DetectorBundleError
impl StructuralPartialEq for DetectorBundleError
Auto Trait Implementations§
impl Freeze for DetectorBundleError
impl RefUnwindSafe for DetectorBundleError
impl Send for DetectorBundleError
impl Sync for DetectorBundleError
impl Unpin for DetectorBundleError
impl UnsafeUnpin for DetectorBundleError
impl UnwindSafe for DetectorBundleError
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.