Struct mesh_protobuf::protobuf::MessageReader
source · pub struct MessageReader<'a, 'b, R> { /* private fields */ }
Expand description
Reader for an message.
Implements Iterator
to return (field number, FieldReader
) pairs.
Users must be prepared to handle fields in any order, allowing unknown and
duplicate fields.
Implementations§
source§impl<'a, 'b, R> MessageReader<'a, 'b, R>
impl<'a, 'b, R> MessageReader<'a, 'b, R>
sourcepub fn take_resources(
&mut self,
) -> impl 'b + ExactSizeIterator<Item = Result<R>>
pub fn take_resources( &mut self, ) -> impl 'b + ExactSizeIterator<Item = Result<R>>
Returns an iterator to consume the resources for this message.
Trait Implementations§
source§impl<'a, 'b, R> IntoIterator for MessageReader<'a, 'b, R>
impl<'a, 'b, R> IntoIterator for MessageReader<'a, 'b, R>
Auto Trait Implementations§
impl<'a, 'b, R> Freeze for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !RefUnwindSafe for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !Send for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !Sync for MessageReader<'a, 'b, R>
impl<'a, 'b, R> Unpin for MessageReader<'a, 'b, R>
impl<'a, 'b, R> !UnwindSafe for MessageReader<'a, '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