Enum protobuf::reflect::ReflectValueRef
source · 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§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReflectValueRef<'a>
impl<'a> Send for ReflectValueRef<'a>
impl<'a> Sync for ReflectValueRef<'a>
impl<'a> Unpin for ReflectValueRef<'a>
impl<'a> !UnwindSafe for ReflectValueRef<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more