Skip to main content

GetByKey

Trait GetByKey 

Source
pub trait GetByKey {
    // Required method
    fn get_by_key(
        &mut self,
        key: &str,
    ) -> Result<Either<&mut String, &mut dyn GetByKey>>;
}

Required Methods§

Source

fn get_by_key( &mut self, key: &str, ) -> Result<Either<&mut String, &mut dyn GetByKey>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> GetByKey for HashMap<String, T>
where T: GetByKey,

Source§

fn get_by_key( &mut self, key: &str, ) -> Result<Either<&mut String, &mut dyn GetByKey>>

Implementors§