pub trait LocalInvariantExt<'a> {
type Inner: 'a;
// Required method
fn open<A, F>(self, tokens: Ghost<Tokens<'a>>, f: F) -> A
where F: FnOnce(Ghost<&'a mut Self::Inner>) -> A;
}Expand description
Define method call syntax for LocalInvariant::open.
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.