/// find the callback of the attribute key from a Vec of attributes
find the callback of the attribute key from a Vec of attributes
find the callback of the attribute key from a Vec of attributes
pub fn find_callback<MSG>(
    key: AttribKey,
    attrs: &[Attribute<MSG>],
) -> Option<Vec<&Callback<MSG>>>
where
    MSG: 'static,
{
    attrs
        .iter()
        .find(|att| *att.name() == key)
        .map(|att| att.get_callback())
}
pub fn find_callback < MSG > ( key : AttribKey , attrs : & [ Attribute < MSG > ] , ) -> Option < Vec < & Callback < MSG > > > where MSG : ' static , { attrs . iter ( ) . find ( | att | * att . name ( ) == key ) . map ( | att | att . get_callback ( ) ) }
find the callback of the attribute key from a Vec of attributes
find the callback of the attribute key from a Vec of attributes
key
AttribKey
attrs
&[Attribute<MSG>]