Get

Trait Get 

Source
pub trait Get<'c, P, T> {
    // Required method
    fn get(&'c self, path: P) -> T;
}
Expand description

A trait modeling the type compatibility.

A type bound C: Get<'_, P, T> means the data at path P from config C is compatible with and can be converted into T.

This trait is not meant to be custom implemented. The trait bound is satisfied by macro-generated implementations of internal helper traits.

Required Methods§

Source

fn get(&'c self, path: P) -> T

Implementors§

Source§

impl<'c, C, P, T> Get<'c, P, T> for C
where C: AccessPath<'c, P>, C::Repr: 'c + ConvertInto<'c, T>,