pub struct PaxState<'global> { /* private fields */ }Expand description
Unified pax metadata state applicable to one ordinary member.
Effective values apply local records over the active global state using
standard last-record-wins and deletion semantics. Self::extensions
retains the positioned extension headers newly encountered for this member.
The effective global state is borrowed from the originating logical reader,
so retaining this view also prevents that reader from advancing to another
member whose global state could differ.
Implementations§
Source§impl<'global> PaxState<'global>
impl<'global> PaxState<'global>
Sourcepub fn extensions(&self) -> impl Iterator<Item = &PaxExtension>
pub fn extensions(&self) -> impl Iterator<Item = &PaxExtension>
Returns positioned extensions newly encountered for this member.
Global extensions are yielded in source order, followed by the optional local extension.
Sourcepub fn effective_record(&self, keyword: &PaxKeyword) -> Option<&PaxRecord>
pub fn effective_record(&self, keyword: &PaxKeyword) -> Option<&PaxRecord>
Returns the final applicable record for keyword, including deletions.
Trait Implementations§
impl<'global> Eq for PaxState<'global>
Source§impl<'global> PartialEq for PaxState<'global>
impl<'global> PartialEq for PaxState<'global>
impl<'global> StructuralPartialEq for PaxState<'global>
Auto Trait Implementations§
impl<'global> Freeze for PaxState<'global>
impl<'global> RefUnwindSafe for PaxState<'global>
impl<'global> Send for PaxState<'global>
impl<'global> Sync for PaxState<'global>
impl<'global> Unpin for PaxState<'global>
impl<'global> UnsafeUnpin for PaxState<'global>
impl<'global> UnwindSafe for PaxState<'global>
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