pub struct AttributeList<'a>(/* private fields */);Implementations§
Source§impl<'a> AttributeList<'a>
Attributes for nodes in the PDF tree.
impl<'a> AttributeList<'a>
Attributes for nodes in the PDF tree.
Each attribute must have an owner (e.g. “Layout”, “List”, “Table”, etc) and an attribute name (e.g. “BBox”, “RowSpan”, etc.) from PDF32000_2008 14.8.5, and then a value of the proper type according to the spec.
Parameters of type CString will not be copied and the pointers must remain valid until
crate::Document::close or crate::Document::abort is called.
Names are expected to be constants and are taken as CString.
Parameters not taken as CString will be copied.
pub fn append_int( &mut self, owner: &'a CString, name: &'a CString, value: i32, ) -> &mut Self
pub fn append_float( &mut self, owner: &'a CString, name: &'a CString, value: f32, ) -> &mut Self
pub fn append_float_array( &mut self, owner: &'a CString, name: &'a CString, value: &[f32], ) -> &mut Self
pub fn append_name( &mut self, owner: &'a CString, name: &'a CString, value: &'a CString, ) -> &mut Self
pub fn append_text_string( &mut self, owner: &'a CString, name: &'a CString, value: &'a CString, ) -> &mut Self
pub fn append_node_id_array( &mut self, owner: &'a CString, name: &'a CString, node_ids: &[i32], ) -> &mut Self
Trait Implementations§
Source§impl Debug for AttributeList<'_>
impl Debug for AttributeList<'_>
Source§impl Default for AttributeList<'_>
impl Default for AttributeList<'_>
impl Send for AttributeList<'_>
impl Sync for AttributeList<'_>
Auto Trait Implementations§
impl<'a> !Freeze for AttributeList<'a>
impl<'a> !RefUnwindSafe for AttributeList<'a>
impl<'a> Unpin for AttributeList<'a>
impl<'a> UnwindSafe for AttributeList<'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