We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a16902 commit a614016Copy full SHA for a614016
src/tag.rs
@@ -80,8 +80,9 @@ impl Tag {
80
Tag::new(tag, TagClass::Universal, true)
81
}
82
83
- /// Returns the tag's value as a `u8` if the `value` component fits in a
84
- /// short form (value < 31) or `None` if this is a long-form tag.
+ /// Returns the tag's representation (including tag class and constructed
+ /// bits) as a `u8` if the `value` component fits in a short form
85
+ /// (value < 31) or `None` if this is a long-form tag.
86
pub fn as_u8(&self) -> Option<u8> {
87
if self.value >= 0x1f {
88
return None;
0 commit comments