Trait protobuf::reflect::ProtobufValue[][src]

pub trait ProtobufValue: Any + 'static {
    fn as_ref(&self) -> ProtobufValueRef<'_>;

    fn as_any(&self) -> &dyn Any { ... }
fn is_non_zero(&self) -> bool { ... }
fn as_ref_copy(&self) -> ProtobufValueRef<'static> { ... } }

Type implemented by all protobuf elementary types (ints, floats, bool, string, bytes, enums, messages).

Required methods

fn as_ref(&self) -> ProtobufValueRef<'_>[src]

As ref

Loading content...

Provided methods

fn as_any(&self) -> &dyn Any[src]

Convert to Any

fn is_non_zero(&self) -> bool[src]

Is value non-zero?

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

Return ProtobufValueRef if self is Copy.

Panics

if Self is not Copy.

Loading content...

Implementations on Foreign Types

impl ProtobufValue for u32[src]

impl ProtobufValue for u64[src]

impl ProtobufValue for i32[src]

impl ProtobufValue for i64[src]

impl ProtobufValue for f32[src]

impl ProtobufValue for f64[src]

impl ProtobufValue for bool[src]

impl ProtobufValue for String[src]

impl ProtobufValue for str[src]

impl ProtobufValue for Vec<u8>[src]

impl ProtobufValue for Bytes[src]

Loading content...

Implementors

impl ProtobufValue for FieldDescriptorProto_Label[src]

impl ProtobufValue for FieldDescriptorProto_Type[src]

impl ProtobufValue for FieldOptions_CType[src]

impl ProtobufValue for FieldOptions_JSType[src]

impl ProtobufValue for FileOptions_OptimizeMode[src]

impl ProtobufValue for Field_Cardinality[src]

impl ProtobufValue for Field_Kind[src]

impl ProtobufValue for NullValue[src]

impl ProtobufValue for Syntax[src]

impl ProtobufValue for DescriptorProto[src]

impl ProtobufValue for DescriptorProto_ExtensionRange[src]

impl ProtobufValue for DescriptorProto_ReservedRange[src]

impl ProtobufValue for EnumDescriptorProto[src]

impl ProtobufValue for EnumOptions[src]

impl ProtobufValue for EnumValueDescriptorProto[src]

impl ProtobufValue for EnumValueOptions[src]

impl ProtobufValue for FieldDescriptorProto[src]

impl ProtobufValue for FieldOptions[src]

impl ProtobufValue for FileDescriptorProto[src]

impl ProtobufValue for FileDescriptorSet[src]

impl ProtobufValue for FileOptions[src]

impl ProtobufValue for GeneratedCodeInfo[src]

impl ProtobufValue for GeneratedCodeInfo_Annotation[src]

impl ProtobufValue for MessageOptions[src]

impl ProtobufValue for MethodDescriptorProto[src]

impl ProtobufValue for MethodOptions[src]

impl ProtobufValue for OneofDescriptorProto[src]

impl ProtobufValue for OneofOptions[src]

impl ProtobufValue for ServiceDescriptorProto[src]

impl ProtobufValue for ServiceOptions[src]

impl ProtobufValue for SourceCodeInfo[src]

impl ProtobufValue for SourceCodeInfo_Location[src]

impl ProtobufValue for UninterpretedOption[src]

impl ProtobufValue for UninterpretedOption_NamePart[src]

impl ProtobufValue for CodeGeneratorRequest[src]

impl ProtobufValue for CodeGeneratorResponse[src]

impl ProtobufValue for CodeGeneratorResponse_File[src]

impl ProtobufValue for Chars[src]

impl ProtobufValue for Any[src]

impl ProtobufValue for Api[src]

impl ProtobufValue for BoolValue[src]

impl ProtobufValue for BytesValue[src]

impl ProtobufValue for DoubleValue[src]

impl ProtobufValue for Duration[src]

impl ProtobufValue for Empty[src]

impl ProtobufValue for Enum[src]

impl ProtobufValue for EnumValue[src]

impl ProtobufValue for Field[src]

impl ProtobufValue for FieldMask[src]

impl ProtobufValue for FloatValue[src]

impl ProtobufValue for Int32Value[src]

impl ProtobufValue for Int64Value[src]

impl ProtobufValue for ListValue[src]

impl ProtobufValue for Method[src]

impl ProtobufValue for Mixin[src]

impl ProtobufValue for Option[src]

impl ProtobufValue for SourceContext[src]

impl ProtobufValue for StringValue[src]

impl ProtobufValue for Struct[src]

impl ProtobufValue for Timestamp[src]

impl ProtobufValue for Type[src]

impl ProtobufValue for UInt32Value[src]

impl ProtobufValue for UInt64Value[src]

impl ProtobufValue for Value[src]

Loading content...