fn write_onto<B: tor_bytes::Writer + ?Sized>(&self, b: &mut B) -> tor_bytes::EncodeResult<()> {
/// Construct a new [`Protocols`] from a single recognized kind and a list of associated versions.
pub fn from_kind_and_versions(kind: ProtoKind, versions: &str) -> Result<Self, ParseError> {
/// Does not preserve sorting order; the caller must call `self.unrecognized.sort()` before returning.
fn add(&mut self, foundmask: &mut u64, ent: SubprotocolEntry) -> Result<(), ParseError> {