pub struct AttributeReader<'data> { /* private fields */ }
Expand description
A parser for the attributes in an AttributesSubsubsection
.
The parser relies on the caller to know the format of the data for each attribute tag.
Implementations§
Source§impl<'data> AttributeReader<'data>
impl<'data> AttributeReader<'data>
Sourcepub fn read_integer(&mut self) -> Result<u64>
pub fn read_integer(&mut self) -> Result<u64>
Parse an integer value.
Sourcepub fn read_string(&mut self) -> Result<&'data [u8]>
pub fn read_string(&mut self) -> Result<&'data [u8]>
Parse a string value.
Trait Implementations§
Source§impl<'data> Clone for AttributeReader<'data>
impl<'data> Clone for AttributeReader<'data>
Source§fn clone(&self) -> AttributeReader<'data>
fn clone(&self) -> AttributeReader<'data>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'data> Freeze for AttributeReader<'data>
impl<'data> RefUnwindSafe for AttributeReader<'data>
impl<'data> Send for AttributeReader<'data>
impl<'data> Sync for AttributeReader<'data>
impl<'data> Unpin for AttributeReader<'data>
impl<'data> UnwindSafe for AttributeReader<'data>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)