LocalInvariantExt

Trait LocalInvariantExt 

Source
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§

Source

type Inner: 'a

Required Methods§

Source

fn open<A, F>(self, tokens: Ghost<Tokens<'a>>, f: F) -> A
where F: FnOnce(Ghost<&'a mut Self::Inner>) -> A,

Alias for LocalInvariant::open, to use method call syntax (inv.open(...)).

requires

false

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.

Implementors§

Source§

impl<'a, L> LocalInvariantExt<'a> for &'a Ghost<L>

Source§

impl<'a, T> LocalInvariantExt<'a> for Ghost<&'a T>
where T: Deref, Ghost<&'a T::Target>: LocalInvariantExt<'a>,

Source§

type Inner = <Ghost<&'a <T as Deref>::Target> as LocalInvariantExt<'a>>::Inner

Source§

impl<'a, T: Protocol> LocalInvariantExt<'a> for Ghost<&'a LocalInvariant<T>>

Source§

type Inner = T