pub enum PaxValue<T> {
Value(T),
Deleted,
}Expand description
A parsed pax value, including an explicit deletion tombstone.
Deletion tombstones are needed because pax has special semantics for empty (i.e. deleted) pax records: they’re considered to delete “any header block field, previously entered extended header value, or global extended header value of the same name.”
This is a distinct state from “missing,” which allows for fallbacks to e.g. global pax headers or the equivalent ustar field.
Variants§
Value(T)
This record sets or overrides the attribute.
Deleted
This record deletes the attribute from its applicable scope.
Trait Implementations§
impl<T: Eq> Eq for PaxValue<T>
Source§impl<T: PartialEq> PartialEq for PaxValue<T>
impl<T: PartialEq> PartialEq for PaxValue<T>
impl<T: PartialEq> StructuralPartialEq for PaxValue<T>
Auto Trait Implementations§
impl<T> Freeze for PaxValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for PaxValue<T>where
T: RefUnwindSafe,
impl<T> Send for PaxValue<T>where
T: Send,
impl<T> Sync for PaxValue<T>where
T: Sync,
impl<T> Unpin for PaxValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for PaxValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PaxValue<T>where
T: UnwindSafe,
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