fn resolve_context(&self, ctx: String) -> Option<String> {
        if self.has_region(&ctx) {
            Some(ctx)
        }
        // otherwise search for an alias
        else {
            // NB: existing alias is guaranteed to have a corresponding region by verify
            self.contextAliases.get(&ctx).map(|a| a.to_string())
        }
    }
/// Retrieve region name using either a region name, or a context as a fallback
///
/// This returns a a valid key in `self.regions` if Some.
Retrieve region name using either a region name, or a context as a fallback
This returns a a valid key in `self.regions` if Some.
Retrieve region name using either a region name or a context as a fallback This returns a a valid key in ` self . regions ` if Some .
fn resolve_context(&self, ctx: String) -> Option<String> {
        if self.has_region(&ctx) {
            Some(ctx)
        }
        // otherwise search for an alias
        else {
            // NB: existing alias is guaranteed to have a corresponding region by verify
            self.contextAliases.get(&ctx).map(|a| a.to_string())
        }
    }
fn resolve_context ( & self , ctx : String ) -> Option < String > { if self . has_region ( & ctx ) { Some ( ctx ) } // otherwise search for an alias else { // NB: existing alias is guaranteed to have a corresponding region by verify self . contextAliases . get ( & ctx ) . map ( | a | a . to_string ( ) ) } }
Retrieve region name using either a region name, or a context as a fallback
This returns a a valid key in `self.regions` if Some.
Retrieve region name using either a region name or a context as a fallback This returns a a valid key in ` self . regions ` if Some .
&self
ctx
String
&self
ctx
String