Enum protobuf::reflect::ReflectValueRef[][src]

pub enum ReflectValueRef<'a> {
    U32(u32),
    U64(u64),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
    Bool(bool),
    String(&'a str),
    Bytes(&'a [u8]),
    Enum(&'static EnumValueDescriptor),
    Message(&'a dyn Message),
}
Expand description

A reference to a value

Variants

U32(u32)

u32

U64(u64)

u64

I32(i32)

i32

I64(i64)

i64

F32(f32)

f32

F64(f64)

f64

Bool(bool)

bool

String(&'a str)

string

Bytes(&'a [u8])

bytes

Enum(&'static EnumValueDescriptor)

enum

Message(&'a dyn Message)

message

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.