Struct pdf_writer::Dict[][src]

pub struct Dict<'a, G: Guard = ()> { /* fields omitted */ }
Expand description

Writer for a dictionary.

Implementations

impl<'a, G: Guard> Dict<'a, G>[src]

pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self[src]

Write a pair with a primitive object value.

This is a shorthand for dict.key(key).primitive(value).

pub fn key(&mut self, key: Name<'_>) -> Obj<'_>[src]

Write a pair with an arbitrary object value.

pub fn len(&self) -> i32[src]

The number of written pairs.

pub fn typed<T: Primitive>(self) -> TypedDict<'a, T, G>[src]

Convert into the typed version.

Trait Implementations

impl<G: Guard> Drop for Dict<'_, G>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, G> RefUnwindSafe for Dict<'a, G> where
    G: RefUnwindSafe

impl<'a, G> Send for Dict<'a, G> where
    G: Send

impl<'a, G> Sync for Dict<'a, G> where
    G: Sync

impl<'a, G> Unpin for Dict<'a, G> where
    G: Unpin

impl<'a, G = ()> !UnwindSafe for Dict<'a, G>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.