Skip to main content

Lookup

Trait Lookup 

Source
pub trait Lookup {
    // Required method
    fn lookup(&self, name: &str) -> Option<String>;
}
Expand description

Resolves a variable name to its value. Matches variables.Lookup in the Go original (used by expand.go’s Lookup function type).

Required Methods§

Source

fn lookup(&self, name: &str) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§