Skip to main content

Lock

Trait Lock 

Source
pub trait Lock: Sized {
    // Required method
    fn lock(&self, context: &mut DofigenContext) -> Result<Self>;
}

Required Methods§

Source

fn lock(&self, context: &mut DofigenContext) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K, V> Lock for HashMap<K, V>
where K: Eq + Hash + Clone, V: Lock,

Source§

fn lock(&self, context: &mut DofigenContext) -> Result<Self>

Source§

impl<T> Lock for Option<T>
where T: Lock,

Source§

fn lock(&self, context: &mut DofigenContext) -> Result<Self>

Source§

impl<T> Lock for Vec<T>
where T: Lock,

Source§

fn lock(&self, context: &mut DofigenContext) -> Result<Self>

Implementors§