Trait protobuf::reflect::ProtobufValue [−][src]
pub trait ProtobufValue: Any + 'static { fn as_ref(&self) -> ReflectValueRef<'_>; 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
fn as_ref(&self) -> ReflectValueRef<'_>
[src]
fn as_ref(&self) -> ReflectValueRef<'_>
[src]As ref
Provided methods
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
[src]Is value non-zero?
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]