Function asn1::to_optional_default
source · pub fn to_optional_default<'a, T: PartialEq>(
v: &'a T,
default: &'a T
) -> Option<&'a T>
Expand description
Prepares an OPTIONAL
ASN.1 value which has a DEFAULT
for writing.
Generally called immediately before Writer::write_element
.