pub struct ShadingPattern<'a> { /* private fields */ }
Expand description

Writer for a shading pattern dictionary. PDF 1.3+.

This struct is created by PdfWriter::shading_pattern.

Implementations

Start writing the /Shading dictionary.

Write the /Matrix attribute.

Sets the matrix to use for the pattern. Defaults to the identity matrix.

Begin writing the /ExtGState attribute.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

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

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.