Struct AttributeList
pub struct AttributeList<'a>(/* private fields */);Implementations§
§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 AttributeList<'a>
pub fn append_float( &mut self, owner: &'a CString, name: &'a CString, value: f32, ) -> &mut AttributeList<'a>
pub fn append_float_array( &mut self, owner: &'a CString, name: &'a CString, value: &[f32], ) -> &mut AttributeList<'a>
pub fn append_name( &mut self, owner: &'a CString, name: &'a CString, value: &'a CString, ) -> &mut AttributeList<'a>
pub fn append_text_string( &mut self, owner: &'a CString, name: &'a CString, value: &'a CString, ) -> &mut AttributeList<'a>
pub fn append_node_id_array( &mut self, owner: &'a CString, name: &'a CString, node_ids: &[i32], ) -> &mut AttributeList<'a>
Trait Implementations§
§impl Debug for AttributeList<'_>
impl Debug for AttributeList<'_>
§impl Default for AttributeList<'_>
impl Default for AttributeList<'_>
§fn default() -> AttributeList<'_>
fn default() -> AttributeList<'_>
Returns the “default value” for a type. Read more
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.