pub struct Reading<'v, 's, N, D, G, S: RangeSource> { /* private fields */ }Expand description
Inventory derived only inside the actual member-producing XML scope. This does not attest complete ODF encryption/extension semantics or signatures.
Implementations§
Source§impl<'v, 's, N: Copy, D: Copy, G: Copy, S: RangeSource> Reading<'v, 's, N, D, G, S>
impl<'v, 's, N: Copy, D: Copy, G: Copy, S: RangeSource> Reading<'v, 's, N, D, G, S>
Sourcepub fn source(&self) -> &Member<'v, 's, S>
pub fn source(&self) -> &Member<'v, 's, S>
Actual complete member from which this XML inventory was produced.
Sourcepub fn faults(&self) -> &[Fault<N, S::Document, S::Generation>]
pub fn faults(&self) -> &[Fault<N, S::Document, S::Generation>]
All original negative/unassessed declarations and missing obligations.
Sourcepub async fn check_root_media<W: Work>(
&self,
work: &W,
) -> Result<RootMedia, ReadFailure<S::Error, S::Document, S::Generation>>
pub async fn check_root_media<W: Work>( &self, work: &W, ) -> Result<RootMedia, ReadFailure<S::Error, S::Document, S::Generation>>
ODF1.2 part3 §3.3 requires exact equality of the package root’s media attribute with the complete mimetype member. MIME essence equality is insufficient. Duplicate roots/names remain unavailable, never selected.
§Panics
An internal immutable name-catalogue invariant fails if its unique candidate cannot be selected from that same catalogue.
Auto Trait Implementations§
impl<'v, 's, N, D, G, S> !Freeze for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> !RefUnwindSafe for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> !Send for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> !Sync for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> !UnwindSafe for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> Forget for Reading<'v, 's, N, D, G, S>
impl<'v, 's, N, D, G, S> Unpin for Reading<'v, 's, N, D, G, S>where
Member<'v, 's, S>: Unpin,
Snapshot<D, G>: Unpin,
N: Unpin,
OwnedVec<Entry<'v, 's, N, S>>: Unpin,
OwnedVec<Fault<N, <S as RangeSource>::Document, <S as RangeSource>::Generation>>: Unpin,
impl<'v, 's, N, D, G, S> UnsafeUnpin for Reading<'v, 's, N, D, G, S>where
Member<'v, 's, S>: UnsafeUnpin,
Snapshot<D, G>: UnsafeUnpin,
N: UnsafeUnpin,
OwnedVec<Entry<'v, 's, N, S>>: UnsafeUnpin,
OwnedVec<Fault<N, <S as RangeSource>::Document, <S as RangeSource>::Generation>>: UnsafeUnpin,
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