/// find the value of the attribute key from a Vec of attributes
find the value of the attribute key from a Vec of attributes
find the value of the attribute key from a Vec of attributes
pub fn find_value<MSG>(
    key: AttribKey,
    attrs: &[Attribute<MSG>],
) -> Option<&Value>
where
    MSG: 'static,
{
    attrs
        .iter()
        .find(|att| *att.name() == key)
        .map(|att| att.get_plain().first().copied())
        .flatten()
}
pub fn find_value < MSG > ( key : AttribKey , attrs : & [ Attribute < MSG > ] , ) -> Option < & Value > where MSG : ' static , { attrs . iter ( ) . find ( | att | * att . name ( ) == key ) . map ( | att | att . get_plain ( ) . first ( ) . copied ( ) ) . flatten ( ) }
find the value of the attribute key from a Vec of attributes
find the value of the attribute key from a Vec of attributes
key
AttribKey
attrs
&[Attribute<MSG>]