Trait r3_core::bind::RuntimeBinder
source · pub trait RuntimeBinder: Send + Copy + 'static {
type Target<'call>;
// Required method
unsafe fn materialize<'call>(self) -> Self::Target<'call>;
}
Expand description
Unstable. The runtime representation of Binder
.
This trait signifies the following properties regarding an implementing type:
-
self
can be “materialized” asSelf::Target<'call>
at runtime. -
'call
represets the duration during whichSelf::Target
is used. IfSelf::Target<'call>
is a reference, its lifetime parameter may be bound to'call
. Some binder types don’t require this.
Stability
This trait is unstable.
Required Associated Types§
Required Methods§
sourceunsafe fn materialize<'call>(self) -> Self::Target<'call>
unsafe fn materialize<'call>(self) -> Self::Target<'call>
Construct a target object at runtime, using the intermediate product
constructed by Binder::into_runtime_binder
.
Safety
intermediate
must have been constructed by
<Self as Binder>::into_runtime_binder
.
The caller must uphold that Self::Target
is safe to exist. (The
configuration system is reponsible for enforcing this property.)