| 1 | use proc_macro2rust-analyzer cargo proc-macro2 1.0.107 crate/::TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream#; |
| 2 | use protobufrust-analyzer cargo protobuf 3.7.2 crate/::reflectrust-analyzer cargo protobuf 3.7.2 reflect/::{FieldDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/field/FieldDescriptor#, ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#}; |
| 3 | use quoterust-analyzer cargo quote 1.0.47 crate/::quoterust-analyzer cargo quote 1.0.47 quote!; |
| 4 | use serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Maprust-analyzer cargo serde_json 1.0.151 map/Map#; |
| 5 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::{BufWriterrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/buffered/bufwriter/BufWriter#, Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#}; |
| 6 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/, fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#, pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#}; |
| 7 | |
| 8 | fn mainrust-analyzer cargo google-fonts-languages 0.7.2 main().() { |
| 9 | // First we load up the descriptor using the protobuf crate |
| 10 | // so that we can do reflection on it. |
| 11 | let descriptors = protobuf_parserust-analyzer cargo protobuf-parse 3.7.2 crate/::Parserrust-analyzer cargo protobuf-parse 3.7.2 parser/Parser#::newrust-analyzer cargo protobuf-parse 3.7.2 parser/impl#[Parser]new().() |
| 12 | .purerust-analyzer cargo protobuf-parse 3.7.2 parser/impl#[Parser]pure().() |
| 13 | .includerust-analyzer cargo protobuf-parse 3.7.2 parser/impl#[Parser]include().(".") |
| 14 | .inputrust-analyzer cargo protobuf-parse 3.7.2 parser/impl#[Parser]input().("Lib/gflanguages/languages_public.proto") |
| 15 | .file_descriptor_setrust-analyzer cargo protobuf-parse 3.7.2 parser/impl#[Parser]file_descriptor_set().() |
| 16 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not parse languages_public.proto"); |
| 17 | let protofile = descriptors.filerust-analyzer cargo protobuf 3.7.2 descriptor/FileDescriptorSet#file..firstrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]first().().expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]expect().("No file in descriptor"); |
| 18 | let descriptor = protobufrust-analyzer cargo protobuf 3.7.2 crate/::reflectrust-analyzer cargo protobuf 3.7.2 reflect/::FileDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/file/FileDescriptor#::new_dynamicrust-analyzer cargo protobuf 3.7.2 reflect/file/impl#[FileDescriptor]new_dynamic().(protofile.clonerust-analyzer cargo protobuf 3.7.2 descriptor/impl#[FileDescriptorProto][Clone]clone().(), &[]) |
| 19 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not create descriptor"); |
| 20 | |
| 21 | // Now we use the prost crate to compile them, so that we can |
| 22 | // generate Rust structs. |
| 23 | let mut config = prost_buildrust-analyzer cargo prost-build 0.13.5 crate/::Configrust-analyzer cargo prost-build 0.13.5 config/Config#::newrust-analyzer cargo prost-build 0.13.5 config/impl#[Config]new().(); |
| 24 | // config.boxed(".google.languages_public.LanguageProto.sample_text"); |
| 25 | // config.boxed(".google.languages_public.LanguageProto.exemplar_chars"); |
| 26 | |
| 27 | // The reflection can tell us what messages we have, so we can configure |
| 28 | // them to be deserializable with serde |
| 29 | for message in descriptor.messagesrust-analyzer cargo protobuf 3.7.2 reflect/file/impl#[FileDescriptor]messages().() { |
| 30 | config.type_attributerust-analyzer cargo prost-build 0.13.5 config/impl#[Config]type_attribute().( |
| 31 | message.full_namerust-analyzer cargo protobuf 3.7.2 reflect/message/impl#[MessageDescriptor]full_name().(), |
| 32 | "#[derive(serde::Serialize, serde::Deserialize)]", |
| 33 | ); |
| 34 | } |
| 35 | // Let's make our structs; this produces google.languages_public.rs |
| 36 | config |
| 37 | .compile_protosrust-analyzer cargo prost-build 0.13.5 config/impl#[Config]compile_protos().( |
| 38 | &["Lib/gflanguages/languages_public.proto"], |
| 39 | &["Lib/gflanguages/"], |
| 40 | ) |
| 41 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not compile languages_public.proto"); |
| 42 | |
| 43 | let path = Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().(&envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("OUT_DIR").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("data.rs"); |
| 44 | let mut file = BufWriterrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/buffered/bufwriter/BufWriter#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/buffered/bufwriter/impl#[`BufWriter<W>`]new().(Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#::createrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/impl#[File]create().(path).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()); |
| 45 | let mut output = quoterust-analyzer cargo quote 1.0.47 quote!! { use std::collections::BTreeMap; use std::sync::LazyLock; }; |
| 46 | |
| 47 | output.extendrust-analyzer cargo proc-macro2 1.0.107 impl#[TokenStream][`Extend<TokenTree>`]extend().(serialize_a_structurerust-analyzer cargo google-fonts-languages 0.7.2 serialize_a_structure().( |
| 48 | ".google.languages_public.RegionProto", |
| 49 | "Lib/gflanguages/data/regions/*.textproto", |
| 50 | "REGIONS", |
| 51 | &descriptor, |
| 52 | )); |
| 53 | |
| 54 | output.extendrust-analyzer cargo proc-macro2 1.0.107 impl#[TokenStream][`Extend<TokenTree>`]extend().(serialize_a_structurerust-analyzer cargo google-fonts-languages 0.7.2 serialize_a_structure().( |
| 55 | ".google.languages_public.ScriptProto", |
| 56 | "Lib/gflanguages/data/scripts/*.textproto", |
| 57 | "SCRIPTS", |
| 58 | &descriptor, |
| 59 | )); |
| 60 | |
| 61 | output.extendrust-analyzer cargo proc-macro2 1.0.107 impl#[TokenStream][`Extend<TokenTree>`]extend().(serialize_a_structurerust-analyzer cargo google-fonts-languages 0.7.2 serialize_a_structure().( |
| 62 | ".google.languages_public.LanguageProto", |
| 63 | "Lib/gflanguages/data/languages/*.textproto", |
| 64 | "LANGUAGES", |
| 65 | &descriptor, |
| 66 | )); |
| 67 | // file.write_all(output.to_string().as_bytes()) |
| 68 | // .expect("Could not write to file"); |
| 69 | |
| 70 | let abstract_file: synrust-analyzer cargo syn 2.0.119 crate/::Filerust-analyzer cargo syn 2.0.119 file/File# = synrust-analyzer cargo syn 2.0.119 crate/::parse2rust-analyzer cargo syn 2.0.119 parse2().(output).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not parse output"); |
| 71 | let formatted = prettypleaserust-analyzer cargo prettyplease 0.2.37 crate/::unparserust-analyzer cargo prettyplease 0.2.37 unparse().(&abstract_file); |
| 72 | file.write_allrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/buffered/bufwriter/impl#[`BufWriter<W>`][Write]write_all().(formatted.as_bytesrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_bytes().()) |
| 73 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not write to file"); |
| 74 | } |
| 75 | |
| 76 | fn serialize_a_structurerust-analyzer cargo google-fonts-languages 0.7.2 serialize_a_structure().( |
| 77 | proto_name: &str, |
| 78 | pathglob: &str, |
| 79 | output_variable: &str, |
| 80 | descriptor: &protobufrust-analyzer cargo protobuf 3.7.2 crate/::reflectrust-analyzer cargo protobuf 3.7.2 reflect/::FileDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/file/FileDescriptor#, |
| 81 | ) -> TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream# { |
| 82 | let proto = descriptor |
| 83 | .message_by_full_namerust-analyzer cargo protobuf 3.7.2 reflect/file/impl#[FileDescriptor]message_by_full_name().(proto_name) |
| 84 | .unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or_else().(|| panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("No {} message", proto_name)); |
| 85 | let files: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#> = globrust-analyzer cargo glob 0.3.4 crate/::globrust-analyzer cargo glob 0.3.4 glob().(pathglob) |
| 86 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Failed to read glob pattern") |
| 87 | .flattenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#flatten().() |
| 88 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(); |
| 89 | let name: TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream# = proto.namerust-analyzer cargo protobuf 3.7.2 reflect/message/impl#[MessageDescriptor]name().().parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 90 | let variable: TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream# = output_variable.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 91 | let mut map = Maprust-analyzer cargo serde_json 1.0.151 map/Map#::newrust-analyzer cargo serde_json 1.0.151 map/impl#[`Map<String, Value>`]new().(); |
| 92 | for file in files.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().() { |
| 93 | serialize_filerust-analyzer cargo google-fonts-languages 0.7.2 serialize_file().(file, &proto, &mut map); |
| 94 | } |
| 95 | let json_var: TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream# = formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("__{}", output_variable).parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 96 | let docmsg = formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("A map of all the {} objects", name); |
| 97 | let json_dump = serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::to_stringrust-analyzer cargo serde_json 1.0.151 ser/to_string().(&map).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not serialize"); |
| 98 | quoterust-analyzer cargo quote 1.0.47 quote!! { |
| 99 | static #json_var: &str = #json_dump; |
| 100 | |
| 101 | #[doc = #docmsg] |
| 102 | pub static #variable: LazyLock<BTreeMap<String, Box<#name>>> = LazyLock::new(|| { |
| 103 | serde_json::from_str(#json_var).expect("Could not deserialize") |
| 104 | }); |
| 105 | } |
| 106 | } |
| 107 | fn serialize_filerust-analyzer cargo google-fonts-languages 0.7.2 serialize_file().( |
| 108 | path: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#, |
| 109 | descriptor: &protobufrust-analyzer cargo protobuf 3.7.2 crate/::reflectrust-analyzer cargo protobuf 3.7.2 reflect/::MessageDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/message/MessageDescriptor#, |
| 110 | value: &mut Maprust-analyzer cargo serde_json 1.0.151 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value#>, |
| 111 | ) { |
| 112 | let mut message = descriptor.new_instancerust-analyzer cargo protobuf 3.7.2 reflect/message/impl#[MessageDescriptor]new_instance().(); |
| 113 | let message_mut = message.as_mutrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T, A>`][`AsMut<T>`]as_mut().(); |
| 114 | let input = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::read_to_stringrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/read_to_string().(&path).expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Could not read file"); |
| 115 | protobufrust-analyzer cargo protobuf 3.7.2 crate/::text_formatrust-analyzer cargo protobuf 3.7.2 text_format/::merge_from_strrust-analyzer cargo protobuf 3.7.2 text_format/parse/merge_from_str().(message_mut, &input) |
| 116 | .unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap_or_else().(|e| panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("Could not parse file {:?}: {:?}", path, e)); |
| 117 | let id = path.file_stemrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]file_stem().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().().to_strrust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/os_str/impl#[OsStr]to_str().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(); |
| 118 | value.insertrust-analyzer cargo serde_json 1.0.151 map/impl#[`Map<String, Value>`]insert().(id.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), serialize_messagerust-analyzer cargo google-fonts-languages 0.7.2 serialize_message().(message_mut)); |
| 119 | } |
| 120 | |
| 121 | fn serialize_messagerust-analyzer cargo google-fonts-languages 0.7.2 serialize_message().(message: &dyn protobufrust-analyzer cargo protobuf 3.7.2 crate/::MessageDynrust-analyzer cargo protobuf 3.7.2 message_dyn/MessageDyn#) -> serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value# { |
| 122 | let descriptor = message.descriptor_dynrust-analyzer cargo protobuf 3.7.2 message_dyn/MessageDyn#descriptor_dyn().(); |
| 123 | // let descriptor_name: TokenStream = descriptor.name().parse().unwrap(); |
| 124 | let mut output = Maprust-analyzer cargo serde_json 1.0.151 map/Map#::newrust-analyzer cargo serde_json 1.0.151 map/impl#[`Map<String, Value>`]new().(); |
| 125 | for field in descriptor.fieldsrust-analyzer cargo protobuf 3.7.2 reflect/message/impl#[MessageDescriptor]fields().() { |
| 126 | let field_name: TokenStreamrust-analyzer cargo proc-macro2 1.0.107 TokenStream# = field.namerust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]name().().parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 127 | let field_contents = serialize_fieldrust-analyzer cargo google-fonts-languages 0.7.2 serialize_field().(&field, message); |
| 128 | output.insertrust-analyzer cargo serde_json 1.0.151 map/impl#[`Map<String, Value>`]insert().(field_name.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), field_contents); |
| 129 | } |
| 130 | output.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 131 | } |
| 132 | |
| 133 | fn serialize_fieldrust-analyzer cargo google-fonts-languages 0.7.2 serialize_field().( |
| 134 | field: &FieldDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/field/FieldDescriptor#, |
| 135 | message: &dyn protobufrust-analyzer cargo protobuf 3.7.2 crate/::MessageDynrust-analyzer cargo protobuf 3.7.2 message_dyn/MessageDyn#, |
| 136 | ) -> serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value# { |
| 137 | if field.is_repeatedrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]is_repeated().() { |
| 138 | let v: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value#> = field |
| 139 | .get_repeatedrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]get_repeated().(message) |
| 140 | .into_iterrust-analyzer cargo protobuf 3.7.2 reflect/repeated/impl#[`ReflectRepeatedRef<'a>`][IntoIterator]into_iter().() |
| 141 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|value| serialize_field_valuerust-analyzer cargo google-fonts-languages 0.7.2 serialize_field_value().(field, value)) |
| 142 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(); |
| 143 | v.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 144 | } else if field.is_requiredrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]is_required().() { |
| 145 | serialize_field_valuerust-analyzer cargo google-fonts-languages 0.7.2 serialize_field_value().(field, field.get_singularrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]get_singular().(message).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().()) |
| 146 | } else if field.has_fieldrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]has_field().(message) { |
| 147 | let value = serialize_field_valuerust-analyzer cargo google-fonts-languages 0.7.2 serialize_field_value().(field, field.get_singularrust-analyzer cargo protobuf 3.7.2 reflect/field/impl#[FieldDescriptor]get_singular().(message).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().()); |
| 148 | value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 149 | } else { |
| 150 | serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::Nullrust-analyzer cargo serde_json 1.0.151 value/Value#Null# |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | fn serialize_field_valuerust-analyzer cargo google-fonts-languages 0.7.2 serialize_field_value().(_field: &FieldDescriptorrust-analyzer cargo protobuf 3.7.2 reflect/field/FieldDescriptor#, value: ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#) -> serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::Valuerust-analyzer cargo serde_json 1.0.151 value/Value# { |
| 155 | match value { |
| 156 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::Boolrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#Bool#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 157 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::I32rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#I32#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 158 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::I64rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#I64#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 159 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::U32rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#U32#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 160 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::U64rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#U64#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 161 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::F32rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#F32#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 162 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::F64rust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#F64#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 163 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::Stringrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#String#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 164 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::Bytesrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#Bytes#(value) => value.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 165 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::Enumrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#Enum#(_value, _ix) => unimplementedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/unimplemented!!(), |
| 166 | ReflectValueRefrust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#::Messagerust-analyzer cargo protobuf 3.7.2 reflect/value/value_ref/ReflectValueRef#Message#(value) => serialize_messagerust-analyzer cargo google-fonts-languages 0.7.2 serialize_message().(&*rust-analyzer cargo protobuf 3.7.2 reflect/message/message_ref/impl#[`MessageRef<'a>`][Deref]deref().value), |
| 167 | } |
| 168 | } |