@@ -263,7 +263,7 @@ impl<T: Asn1Writable> SimpleAsn1Writable for OctetStringEncoded<T> {
263263/// Type for use with `Parser.read_element` and `Writer.write_element` for
264264/// handling ASN.1 `PrintableString`. A `PrintableString` contains an `&str`
265265/// with only valid characers.
266- #[ derive( Clone , Debug , PartialEq , Eq ) ]
266+ #[ derive( Clone , Debug , PartialEq , Eq , Hash ) ]
267267pub struct PrintableString < ' a > ( & ' a str ) ;
268268
269269impl < ' a > PrintableString < ' a > {
@@ -382,7 +382,7 @@ impl SimpleAsn1Writable for IA5String<'_> {
382382
383383/// Type for use with `Parser.read_element` and `Writer.write_element` for
384384/// handling ASN.1 `UTF8String`.
385- #[ derive( Clone , Debug , PartialEq , Eq ) ]
385+ #[ derive( Clone , Debug , PartialEq , Eq , Hash ) ]
386386pub struct Utf8String < ' a > ( & ' a str ) ;
387387
388388impl < ' a > Utf8String < ' a > {
@@ -471,7 +471,7 @@ impl SimpleAsn1Writable for VisibleString<'_> {
471471/// Type for use with `Parser.read_element` and `Writer.write_element` for
472472/// handling ASN.1 `BMPString`. A `BMPString` contains encoded (UTF-16-BE)
473473/// bytes which are known to be valid.
474- #[ derive( Debug , PartialEq , Clone , Eq ) ]
474+ #[ derive( Debug , PartialEq , Clone , Eq , Hash ) ]
475475pub struct BMPString < ' a > ( & ' a [ u8 ] ) ;
476476
477477impl < ' a > BMPString < ' a > {
@@ -521,7 +521,7 @@ impl SimpleAsn1Writable for BMPString<'_> {
521521/// Type for use with `Parser.read_element` and `Writer.write_element` for
522522/// handling ASN.1 `UniversalString`. A `UniversalString` contains encoded
523523/// (UTF-32-BE) bytes which are known to be valid.
524- #[ derive( Debug , PartialEq , Clone , Eq ) ]
524+ #[ derive( Debug , PartialEq , Clone , Eq , Hash ) ]
525525pub struct UniversalString < ' a > ( & ' a [ u8 ] ) ;
526526
527527impl < ' a > UniversalString < ' a > {
0 commit comments