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

As ref

Provided methods

Convert to Any

Is value non-zero?

Return ProtobufValueRef if self is Copy.

Panics

if Self is not Copy.

Implementations on Foreign Types

Implementors