Trait protobuf::reflect::ProtobufValue
source · pub trait ProtobufValue: Any + 'static {
// Required method
fn as_ref(&self) -> ReflectValueRef<'_>;
// Provided methods
fn as_any(&self) -> &dyn Any { ... }
fn is_non_zero(&self) -> bool { ... }
fn as_ref_copy(&self) -> ReflectValueRef<'static> { ... }
}
Expand description
Type implemented by all protobuf elementary types (ints, floats, bool, string, bytes, enums, messages).
Required Methods§
sourcefn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Provided Methods§
sourcefn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?