Home
last modified time | relevance | path

Searched refs:SingularPtrField (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/protobuf/src/
Dsingular.rs20 pub struct SingularPtrField<T> { struct
124 pub fn map<U, F>(self, f: F) -> SingularPtrField<U> in map()
128 SingularPtrField::from_option(self.into_option().map(f)) in map()
182 impl<T> SingularPtrField<T> { implementation
185 pub fn some(value: T) -> SingularPtrField<T> { in some()
186 SingularPtrField { in some()
194 pub fn none() -> SingularPtrField<T> { in none()
195 SingularPtrField { in none()
203 pub fn from_option(option: Option<T>) -> SingularPtrField<T> { in from_option()
205 Some(x) => SingularPtrField::some(x), in from_option()
[all …]
Dlib.rs38 pub use crate::singular::SingularPtrField;
Dplugin.rs318 pub compiler_version: crate::SingularPtrField<Version>,
439 self.compiler_version = crate::SingularPtrField::some(v); in set_compiler_version()
897 pub generated_code_info: crate::SingularPtrField<crate::descriptor::GeneratedCodeInfo>,
1040 self.generated_code_info = crate::SingularPtrField::some(v); in set_generated_code_info()
Drt.rs22 use crate::singular::SingularPtrField;
787 target: &mut SingularPtrField<M>, in read_singular_message_into()
Ddescriptor.rs204 pub options: crate::SingularPtrField<FileOptions>,
205 pub source_code_info: crate::SingularPtrField<SourceCodeInfo>,
488 self.options = crate::SingularPtrField::some(v); in set_options()
521 self.source_code_info = crate::SingularPtrField::some(v); in set_source_code_info()
911 pub options: crate::SingularPtrField<MessageOptions>,
1134 self.options = crate::SingularPtrField::some(v); in set_options()
1519 pub options: crate::SingularPtrField<ExtensionRangeOptions>,
1592 self.options = crate::SingularPtrField::some(v); in set_options()
2148 pub options: crate::SingularPtrField<FieldOptions>,
2440 self.options = crate::SingularPtrField::some(v); in set_options()
[all …]
/external/rust/crates/protobuf/src/reflect/
Doptional.rs39 impl<V: ProtobufValue + Clone + 'static> ReflectOptional for SingularPtrField<V> { implementation
46 Some(v) => mem::replace(self, SingularPtrField::some(v.clone())), in set_value()
/external/rust/crates/protobuf-codegen/src/
Drust_types_values.rs31 SingularPtrField(Box<RustType>), enumerator
76 RustType::SingularPtrField(ref param) => format!( in to_code()
193 RustType::SingularPtrField(..) => format!( in default_value()
227 | RustType::SingularPtrField(..) in clear()
250 RustType::SingularPtrField(..) => format!( in wrap_value()
397 | &RustType::SingularPtrField(ref ty) => RustType::Ref(ty.clone()), in iter_elem_type()
/external/rust/crates/protobuf/src/reflect/acc/
Dv1.rs26 use crate::singular::SingularPtrField;
676 impl<M, V> FieldAccessor2<M, dyn ReflectOptional> for MessageGetMut<M, SingularPtrField<V>>
692 get_field: for<'a> fn(&'a M) -> &'a SingularPtrField<V::Value>, in make_singular_ptr_field_accessor()
693 mut_field: for<'a> fn(&'a mut M) -> &'a mut SingularPtrField<V::Value>, in make_singular_ptr_field_accessor()
702 MessageGetMut::<M, SingularPtrField<V::Value>> { in make_singular_ptr_field_accessor()
/external/rust/crates/protobuf/src/well_known_types/
Dtype_pb.rs30 pub source_context: crate::SingularPtrField<crate::well_known_types::SourceContext>,
167 self.source_context = crate::SingularPtrField::some(v); in set_source_context()
1081 pub source_context: crate::SingularPtrField<crate::well_known_types::SourceContext>,
1193 self.source_context = crate::SingularPtrField::some(v); in set_source_context()
1673 pub value: crate::SingularPtrField<crate::well_known_types::Any>,
1734 self.value = crate::SingularPtrField::some(v); in set_value()
Dapi.rs30 pub source_context: crate::SingularPtrField<crate::well_known_types::SourceContext>,
169 self.source_context = crate::SingularPtrField::some(v); in set_source_context()
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs158 RustType::SingularPtrField(Box::new(self.elem.rust_storage_type())) in rust_storage_type()
884 RustType::SingularPtrField(..) => "singular_ptr_field", in accessor_fn()
1060 RustType::SingularField(ty) | RustType::SingularPtrField(ty) => { in as_option_type()
1241 RustType::SingularField(..) | RustType::SingularPtrField(..) => { in write_self_field_assign_default()