pub fn has_extension(pack: &NtpPacket, kind: NtpExtensionType) -> bool {
    for ext in pack.exts.clone() {
        if ext.ext_type == kind {
            return true;
        }
    }
    return false;
}
/// has_extension returns true if the packet has an extension of the right kind
has_extension returns true if the packet has an extension of the right kind
has_extension returns true if the packet has an extension of the right kind
pub fn has_extension(pack: &NtpPacket, kind: NtpExtensionType) -> bool {
    for ext in pack.exts.clone() {
        if ext.ext_type == kind {
            return true;
        }
    }
    return false;
}
pub fn has_extension ( pack : & NtpPacket , kind : NtpExtensionType ) -> bool { for ext in pack . exts . clone ( ) { if ext . ext_type == kind { return true ; } } return false ; }
has_extension returns true if the packet has an extension of the right kind
has_extension returns true if the packet has an extension of the right kind
pack
&NtpPacket
kind
NtpExtensionType
pack
&NtpPacket
kind
NtpExtensionType