pub enum Ref<'b, 'r> {
}Expand description
A field value read from the buffer. Scalars are by value; strings, bytes,
structs, and lists borrow the message buffer ('b).
Variants§
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Str(&'b str)
Bytes(&'b [u8])
Enum(u32)
Struct(StructReader<'b, 'r>)
List(ListReader<'b, 'r>)
Map(MapReader<'b, 'r>)
Union(UnionReader<'b, 'r>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'b, 'r> !RefUnwindSafe for Ref<'b, 'r>
impl<'b, 'r> !Send for Ref<'b, 'r>
impl<'b, 'r> !Sync for Ref<'b, 'r>
impl<'b, 'r> !UnwindSafe for Ref<'b, 'r>
impl<'b, 'r> Freeze for Ref<'b, 'r>
impl<'b, 'r> Unpin for Ref<'b, 'r>
impl<'b, 'r> UnsafeUnpin for Ref<'b, 'r>
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