Skip to main content

Value

Struct Value 

Source
pub struct Value<'s, D, G> { /* private fields */ }
Expand description

One bounded object reading. Owning buffers have independent actual-capacity charges; source queries continue to require the original session and the current operation. This does not assert a valid PDF file or PAdES signature.

Implementations§

Source§

impl<'s, D: Copy + Eq, G: Copy + Eq> Value<'s, D, G>

Source

pub fn stamp(&self) -> Stamp<D, G>

Original source identity and generation used for every node.

Source

pub fn end(&self) -> u64

First original byte following the root value, before unrelated input.

Source

pub fn faults(&self) -> &[Fault]

Readable format violations preserved during unique-value inspection. An empty list alone does not establish PDF/PAdES conformance.

Source

pub fn root(&self) -> Object<'_, 's, D, G>

Root metadata, without traversal, allocation or interpretation.

Auto Trait Implementations§

§

impl<'s, D, G> !Freeze for Value<'s, D, G>

§

impl<'s, D, G> !RefUnwindSafe for Value<'s, D, G>

§

impl<'s, D, G> !Send for Value<'s, D, G>

§

impl<'s, D, G> !Sync for Value<'s, D, G>

§

impl<'s, D, G> !UnwindSafe for Value<'s, D, G>

§

impl<'s, D, G> Unpin for Value<'s, D, G>
where Stamp<D, G>: Unpin,

§

impl<'s, D, G> UnsafeUnpin for Value<'s, D, G>
where Stamp<D, G>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.