Struct StructureElementNode
pub struct StructureElementNode<'a>(/* private fields */);Implementations§
§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>) -> StructureElementNode<'a>
pub fn set_type_string( &mut self, type_string: impl AsRef<str>, ) -> &mut StructureElementNode<'a>
pub fn type_string(&self) -> &str
pub fn set_child_vector( &mut self, child_vector: Vec<StructureElementNode<'_>>, ) -> &mut StructureElementNode<'a>
pub fn append_child( &mut self, node: StructureElementNode<'_>, ) -> &mut StructureElementNode<'a>
pub fn child_vector(&self) -> &[StructureElementNode<'_>]
pub fn set_node_id(&mut self, node_id: i32) -> &mut StructureElementNode<'a>
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 StructureElementNode<'a>
pub fn alt(&self) -> &str
pub fn set_lang( &mut self, lang: impl AsRef<str>, ) -> &mut StructureElementNode<'a>
pub fn lang(&self) -> &str
Trait Implementations§
§impl Debug for StructureElementNode<'_>
impl Debug for StructureElementNode<'_>
§impl Default for StructureElementNode<'_>
impl Default for StructureElementNode<'_>
§fn default() -> StructureElementNode<'_>
fn default() -> StructureElementNode<'_>
Returns the “default value” for a type. Read more
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
§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> 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.