pub enum SynthesizableClosureViolationKind {
Heap,
RuntimeCaptureState,
Impure,
}Expand description
Kind of SynthesizableClosure constraint breach (FR74 / Cap-R-48…50).
Distinct from FR16 [ElaborateSession::reject_unsynthesizable] (rhdl::E0141)
and hardware-ref capture [ElaborateSession::reject_hw_capture] (rhdl::E0142).
Variants§
Heap
Heap allocation in closure body / environment (Cap-R-48) → rhdl::E0143.
RuntimeCaptureState
Runtime (non-const) capture state (Cap-R-49) → rhdl::E0144.
Impure
Impure / side-effecting body (Cap-R-50) → rhdl::E0145.
Implementations§
Trait Implementations§
Source§impl Clone for SynthesizableClosureViolationKind
impl Clone for SynthesizableClosureViolationKind
Source§fn clone(&self) -> SynthesizableClosureViolationKind
fn clone(&self) -> SynthesizableClosureViolationKind
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 Copy for SynthesizableClosureViolationKind
impl Eq for SynthesizableClosureViolationKind
impl StructuralPartialEq for SynthesizableClosureViolationKind
Auto Trait Implementations§
impl Freeze for SynthesizableClosureViolationKind
impl RefUnwindSafe for SynthesizableClosureViolationKind
impl Send for SynthesizableClosureViolationKind
impl Sync for SynthesizableClosureViolationKind
impl Unpin for SynthesizableClosureViolationKind
impl UnsafeUnpin for SynthesizableClosureViolationKind
impl UnwindSafe for SynthesizableClosureViolationKind
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