pub struct ScopeBinding {
pub hooks: Vec<Hook>,
pub before_each_build: Vec<Arc<dyn Fn() + Send + Sync>>,
}Expand description
What Scope::bind registers on a builder.
Fields§
§hooks: Vec<Hook>The hooks to add.
before_each_build: Vec<Arc<dyn Fn() + Send + Sync>>What runs before each statement the builder builds.
Trait Implementations§
Source§impl Clone for ScopeBinding
impl Clone for ScopeBinding
Source§impl Debug for ScopeBinding
impl Debug for ScopeBinding
Auto Trait Implementations§
impl !RefUnwindSafe for ScopeBinding
impl !UnwindSafe for ScopeBinding
impl Forget for ScopeBinding
impl Freeze for ScopeBinding
impl Move for ScopeBinding
impl Send for ScopeBinding
impl Sync for ScopeBinding
impl Unpin for ScopeBinding
impl UnsafeUnpin for ScopeBindingwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Hook>: UnsafeUnpin,
PhantomData<Arc<dyn Fn() + Sync + Send>>: UnsafeUnpin,
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