pub struct PbfReader<'a> {
pub data: &'a [u8],
/* private fields */
}Fields§
§data: &'a [u8]Implementations§
Source§impl<'a> PbfReader<'a>
impl<'a> PbfReader<'a>
pub const fn new(data: &'a [u8]) -> Self
pub fn next(&mut self) -> Result<Option<Tag>>
pub fn skip(&mut self) -> Result<()>
pub fn bytes(&mut self) -> Result<&'a [u8]>
pub fn string(&mut self) -> Result<&'a str>
pub fn message(&mut self) -> Result<Self>
pub fn bool(&mut self) -> Result<bool>
pub fn enum(&mut self) -> Result<i32>
pub fn int32(&mut self) -> Result<i32>
pub fn int64(&mut self) -> Result<i64>
pub fn sint32(&mut self) -> Result<i32>
pub fn sint64(&mut self) -> Result<i64>
pub fn uint32(&mut self) -> Result<u32>
pub fn uint64(&mut self) -> Result<u64>
pub fn fixed32(&mut self) -> Result<u32>
pub fn packed_int32(&mut self) -> Result<VarintIter<'a, i32>>
pub fn packed_int64(&mut self) -> Result<VarintIter<'a, i64>>
pub fn packed_sint32(&mut self) -> Result<SvarintIter<'a, i32>>
pub fn packed_sint64(&mut self) -> Result<SvarintIter<'a, i64>>
pub fn packed_uint32(&mut self) -> Result<VarintIter<'a, u32>>
pub fn packed_uint64(&mut self) -> Result<VarintIter<'a, u64>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PbfReader<'a>
impl<'a> RefUnwindSafe for PbfReader<'a>
impl<'a> Send for PbfReader<'a>
impl<'a> Sync for PbfReader<'a>
impl<'a> Unpin for PbfReader<'a>
impl<'a> UnwindSafe for PbfReader<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)