pub fn named(name: impl fmt::Display) -> Option<Self> {
        let registers = NAMED_REGISTERS.lock();
        if let Some(r) = registers.get(&name.to_string()) {
            Some(r.clone())
        } else {
            None
        }
    }
/// Get a user defined register by its name.
/// The register MUST be previously defined.
Get a user defined register by its name.
The register MUST be previously defined.
Get a user defined register by its name . The register MUST be previously defined .
pub fn named(name: impl fmt::Display) -> Option<Self> {
        let registers = NAMED_REGISTERS.lock();
        if let Some(r) = registers.get(&name.to_string()) {
            Some(r.clone())
        } else {
            None
        }
    }
pub fn named ( name : impl fmt :: Display ) -> Option < Self > { let registers = NAMED_REGISTERS . lock ( ) ; if let Some ( r ) = registers . get ( & name . to_string ( ) ) { Some ( r . clone ( ) ) } else { None } }
Get a user defined register by its name.
Get a user defined register by its name .
name
impl fmt::Display
name
impl fmt::Display