fn check_advert(
        msg: &<Self as ArtifactKind>::Message,
        advert: &Advert<Self>,
    ) -> Result<(), Advert<Self>>
    where
        Advert<Self>: Eq,
    {
        let computed = Self::message_to_advert(msg);
        if advert == &computed {
            Ok(())
        } else {
            Err(computed)
        }
    }
/// Checks if the given advert matches what is computed from the message.
/// Returns the advert derived from artifact on mismatch.
Checks if the given advert matches what is computed from the message.
Returns the advert derived from artifact on mismatch.
Checks if the given advert matches what is computed from the message . Returns the advert derived from artifact on mismatch .
fn check_advert(
        msg: &<Self as ArtifactKind>::Message,
        advert: &Advert<Self>,
    ) -> Result<(), Advert<Self>>
    where
        Advert<Self>: Eq,
    {
        let computed = Self::message_to_advert(msg);
        if advert == &computed {
            Ok(())
        } else {
            Err(computed)
        }
    }
fn check_advert ( msg : & < Self as ArtifactKind > :: Message , advert : & Advert < Self > , ) -> Result < ( ) , Advert < Self > > where Advert < Self > : Eq , { let computed = Self :: message_to_advert ( msg ) ; if advert == & computed { Ok ( ( ) ) } else { Err ( computed ) } }
Checks if the given advert matches what is computed from the message.
Checks if the given advert matches what is computed from the message .
msg
&<Self as ArtifactKind>::Message
advert
&Advert<Self>
msg
&<Self as ArtifactKind>::Message
advert
&Advert<Self>