/// Retrieves the full component name for a given alias (if one is defined)
///
/// # Example
///
/// ```no_run
/// # use clog::Clog;
/// let mut clog = Clog::new().unwrap_or_else(|e| {
///     e.exit();
/// });
///
/// let component = clog.component_for("will_be_none");
/// assert_eq!(None, component);
/// ```
Retrieves the full component name for a given alias (if one is defined)
Retrieves the full component name for a given alias ( if one is defined )
pub fn component_for(&self, alias: &str) -> Option<&String> {
        self.component_map
            .iter()
            .filter(|&(_, v)| v.iter().any(|c| c == alias))
            .map(|(k, _)| k)
            .next()
    }
pub fn component_for ( & self , alias : & str ) -> Option < & String > { self . component_map . iter ( ) . filter ( | & ( _ , v ) | v . iter ( ) . any ( | c | c == alias ) ) . map ( | ( k , _ ) | k ) . next ( ) }
Retrieves the full component name for a given alias (if one is defined)
Retrieves the full component name for a given alias ( if one is defined )
&self
alias
&str
example
None
use clog::clog;


let component = clog.component_for("will_be_none");
assert_eq!(None, component);
```
let component = clog . component_for ( " will_be_none " ) ; assert_eq! ( None component ) ; ` ` `