dofigen_lib::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>

Object Safety§

This trait is not object safe.

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§