pub struct TableAttributes<'a> { /* private fields */ }
Expand description
Writer for a table attributes dictionary. PDF 1.4+
This struct is created by Attributes::table
.
Implementations§
source§impl<'a> TableAttributes<'a>
impl<'a> TableAttributes<'a>
sourcepub fn row_span(&mut self, row_span: i32) -> &mut Self
pub fn row_span(&mut self, row_span: i32) -> &mut Self
Write the /RowSpan
attribute to set the number of rows that shall be
spanned by this cell.
sourcepub fn col_span(&mut self, col_span: i32) -> &mut Self
pub fn col_span(&mut self, col_span: i32) -> &mut Self
Write the /ColSpan
attribute to set the number of columns that shall
be spanned by this cell.
sourcepub fn headers(&mut self) -> TypedArray<'_, Str<'_>>
pub fn headers(&mut self) -> TypedArray<'_, Str<'_>>
Write the /Headers
attribute to refer to the header cells of the
table. PDF 1.6+.
sourcepub fn scope(&mut self, scope: TableHeaderScope) -> &mut Self
pub fn scope(&mut self, scope: TableHeaderScope) -> &mut Self
Write the /Scope
attribute to define whether a table header cell
refers to its row or column.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
source§impl<'a> Deref for TableAttributes<'a>
impl<'a> Deref for TableAttributes<'a>
source§impl<'a> DerefMut for TableAttributes<'a>
impl<'a> DerefMut for TableAttributes<'a>
source§impl<'a, 'any> Rewrite<'a> for TableAttributes<'any>
impl<'a, 'any> Rewrite<'a> for TableAttributes<'any>
source§type Output = TableAttributes<'a>
type Output = TableAttributes<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for TableAttributes<'a>
impl<'a> RefUnwindSafe for TableAttributes<'a>
impl<'a> Send for TableAttributes<'a>
impl<'a> Sync for TableAttributes<'a>
impl<'a> Unpin for TableAttributes<'a>
impl<'a> !UnwindSafe for TableAttributes<'a>
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