pub unsafe trait CownPtrs {
type CownRefs<'l>
where Self: 'l;
// Required methods
fn requests(&self) -> Vec<Request>;
unsafe fn get_mut<'l>(self) -> Self::CownRefs<'l>;
}
Expand description
Trait for a collection of CownPtr
s.
Users pass CownPtrs
to when!
clause to specify a collection of shared resources, and such
resources can be accessed via CownRefs
inside the thunk.
§Safety
requests
should actually return the requests for the corresponding cowns.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.