[]Function sauron::prelude::mt_dom::diff_with_key

pub fn diff_with_key<NS, TAG, ATT, VAL, EVENT, MSG>(
    old: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>,
    new: &'a Node<NS, TAG, ATT, VAL, EVENT, MSG>,
    key: &ATT
) -> Vec<Patch<'a, NS, TAG, ATT, VAL, EVENT, MSG>>

Notable traits for Vec<u8>

impl Write for Vec<u8>
where
    ATT: PartialEq<ATT> + Debug,
    NS: PartialEq<NS> + Debug,
    TAG: PartialEq<TAG> + Debug,
    VAL: PartialEq<VAL> + Debug

calculate the difference of 2 nodes the supplied key will be taken into account that if the 2 keys differ, the element will be replaced without having to traverse the children nodes