pub struct Heading<'a> { /* private fields */ }Expand description
The heading of a document: keyed units after SYN, in written order, dead keys dropped. A duplicate key is reported as written; lookups take the last value.
Implementations§
Source§impl<'a> Heading<'a>
impl<'a> Heading<'a>
Sourcepub fn pairs(&self) -> &[(&'a [u8], Cow<'a, [u8]>)]
pub fn pairs(&self) -> &[(&'a [u8], Cow<'a, [u8]>)]
(key, value) pairs in written order. A nested-level value is its raw
DLE … CAN bytes; see Heading::blob.
Sourcepub fn schema(&self) -> Option<&[u8]>
pub fn schema(&self) -> Option<&[u8]>
The schema the body claims: a name, or the raw level holding the
keyed record of name, url and hash; None when absent.
Sourcepub fn blob(&self) -> Result<Option<Body<'a>>>
pub fn blob(&self) -> Result<Option<Body<'a>>>
The blob table, when declared as a nested level.
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a> Forget for Heading<'a>
impl<'a> Freeze for Heading<'a>
impl<'a> Move for Heading<'a>
impl<'a> RefUnwindSafe for Heading<'a>
impl<'a> Send for Heading<'a>
impl<'a> Sync for Heading<'a>
impl<'a> Unpin for Heading<'a>
impl<'a> UnsafeUnpin for Heading<'a>
impl<'a> UnwindSafe for Heading<'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