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