pub struct StructureElementNode<'a>(/* private fields */);Implementations§
Source§impl<'a> StructureElementNode<'a>
A node in a PDF structure tree, giving a semantic representation
of the content. Each node ID is associated with content
by passing the crate::Canvas and node ID to set_node_id() when drawing.
NodeIDs should be unique within each tree.
impl<'a> StructureElementNode<'a>
A node in a PDF structure tree, giving a semantic representation
of the content. Each node ID is associated with content
by passing the crate::Canvas and node ID to set_node_id() when drawing.
NodeIDs should be unique within each tree.
pub fn new(type_string: impl AsRef<str>) -> Self
pub fn set_type_string(&mut self, type_string: impl AsRef<str>) -> &mut Self
pub fn type_string(&self) -> &str
pub fn set_child_vector( &mut self, child_vector: Vec<StructureElementNode<'_>>, ) -> &mut Self
pub fn append_child(&mut self, node: StructureElementNode<'_>) -> &mut Self
pub fn child_vector(&self) -> &[StructureElementNode<'_>]
pub fn set_node_id(&mut self, node_id: i32) -> &mut Self
pub fn node_id(&self) -> i32
pub fn attributes(&self) -> &AttributeList<'a>
pub fn attributes_mut(&mut self) -> &mut AttributeList<'a>
pub fn set_alt(&mut self, alt: impl AsRef<str>) -> &mut Self
pub fn alt(&self) -> &str
pub fn set_lang(&mut self, lang: impl AsRef<str>) -> &mut Self
pub fn lang(&self) -> &str
Trait Implementations§
Source§impl Debug for StructureElementNode<'_>
impl Debug for StructureElementNode<'_>
Source§impl Default for StructureElementNode<'_>
impl Default for StructureElementNode<'_>
Auto Trait Implementations§
impl<'a> Freeze for StructureElementNode<'a>
impl<'a> !RefUnwindSafe for StructureElementNode<'a>
impl<'a> !Send for StructureElementNode<'a>
impl<'a> !Sync for StructureElementNode<'a>
impl<'a> Unpin for StructureElementNode<'a>
impl<'a> !UnwindSafe for StructureElementNode<'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