pub struct SynthesizableClosureViolation {
pub kind: SynthesizableClosureViolationKind,
pub detail: String,
}Expand description
Documented SynthesizableClosure violation token (Story 28.1 / Cap-R-60).
Pass to [ElaborateSession::reject_unsynthesizable_closure] /
[ElaborateSession::check_synthesizable_closure]. Empty violation list =
legal empty/simple closure.
Fields§
§kind: SynthesizableClosureViolationKind§detail: StringImplementations§
Trait Implementations§
Source§impl Clone for SynthesizableClosureViolation
impl Clone for SynthesizableClosureViolation
Source§fn clone(&self) -> SynthesizableClosureViolation
fn clone(&self) -> SynthesizableClosureViolation
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 SynthesizableClosureViolation
impl StructuralPartialEq for SynthesizableClosureViolation
Auto Trait Implementations§
impl Freeze for SynthesizableClosureViolation
impl RefUnwindSafe for SynthesizableClosureViolation
impl Send for SynthesizableClosureViolation
impl Sync for SynthesizableClosureViolation
impl Unpin for SynthesizableClosureViolation
impl UnsafeUnpin for SynthesizableClosureViolation
impl UnwindSafe for SynthesizableClosureViolation
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