pub struct ClosureRule<T: ?Sized> { /* private fields */ }Expand description
Adapter wrapping a sync closure as a Rule (used by .refine(...)).
Implementations§
Trait Implementations§
Source§impl<T: ?Sized> Debug for ClosureRule<T>
Debug output shows only the stable name (closures are not printable).
impl<T: ?Sized> Debug for ClosureRule<T>
Debug output shows only the stable name (closures are not printable).
Source§impl<T: ?Sized> Rule<T> for ClosureRule<T>
impl<T: ?Sized> Rule<T> for ClosureRule<T>
Source§fn name(&self) -> &str
fn name(&self) -> &str
Stable identifier for the rule, used for diagnostics and
Debug
output only. In v0 it is NOT embedded in issue params and NOT surfaced
via shape(); surfacing remains a candidate future contract change.
Borrowed from the rule itself so generated names need no 'static
interning.Auto Trait Implementations§
impl<T> !RefUnwindSafe for ClosureRule<T>
impl<T> !UnwindSafe for ClosureRule<T>
impl<T> Freeze for ClosureRule<T>
impl<T> Send for ClosureRule<T>
impl<T> Sync for ClosureRule<T>
impl<T> Unpin for ClosureRule<T>
impl<T> UnsafeUnpin for ClosureRule<T>
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