Lines Matching +full:unused +full:- +full:private +full:- +full:field
1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
6 // https://developers.google.com/open-source/licenses/bsd
10 #![allow(unused)]
12 use crate::__internal::Private;
19 /// A protobuf value from a field that may not be set.
22 /// field is set and access the field data.
24 /// Two `Optional`s are equal if they match both presence and the field values.
27 /// The field is set; it is present in the serialized message.
29 /// - For an `_opt()` accessor, this contains a `View<impl Proxied>`.
30 /// - For a `_mut()` accessor, this contains a [`PresentField`] that can be
35 /// The field is unset; it is absent in the serialized message.
37 /// - For an `_opt()` accessor, this contains a `View<impl Proxied>` with
39 /// - For a `_mut()` accessor, this contains an [`AbsentField`] that can be
45 /// Gets the field value, ignoring whether it was set or not.
46 pub fn into_inner(self) -> T { in into_inner()
53 pub fn new(val: T, is_set: bool) -> Self { in new()
58 pub fn into_option(self) -> Option<T> { in into_option()
62 /// Returns if the field is set.
63 pub fn is_set(&self) -> bool { in is_set()
67 /// Returns if the field is unset.
68 pub fn is_unset(&self) -> bool { in is_unset()
74 fn from(x: Optional<T>) -> Option<T> { in from()