Skip to main content

QPdfObjectLike

Trait QPdfObjectLike 

Source
pub trait QPdfObjectLike {
Show 14 methods // Required method fn as_object(&self) -> &QPdfObject; // Provided methods fn owner(&self) -> QPdf { ... } fn get_type(&self) -> QPdfObjectType { ... } fn to_binary(&self) -> String { ... } fn is_operator(&self) -> bool { ... } fn is_scalar(&self) -> bool { ... } fn is_indirect(&self) -> bool { ... } fn as_bool(&self) -> bool { ... } fn as_name(&self) -> String { ... } fn as_string(&self) -> String { ... } fn as_binary_string(&self) -> Vec<u8> ⓘ { ... } fn get_id(&self) -> u32 { ... } fn get_generation(&self) -> u32 { ... } fn into_indirect(self) -> QPdfObject where Self: Sized + Into<QPdfObject> { ... }
}

Required Methods§

Source

fn as_object(&self) -> &QPdfObject

Return inner object

Provided Methods§

Source

fn owner(&self) -> QPdf

Source

fn get_type(&self) -> QPdfObjectType

Get this object type

Source

fn to_binary(&self) -> String

‘Unparse’ the object converting it to a binary representation

Source

fn is_operator(&self) -> bool

Return true if this is an operator object

Source

fn is_scalar(&self) -> bool

Return true if this is a scalar object

Source

fn is_indirect(&self) -> bool

Return true if this is an indirect object

Source

fn as_bool(&self) -> bool

Get boolean value

Source

fn as_name(&self) -> String

Get name value

Source

fn as_string(&self) -> String

Get string value

Source

fn as_binary_string(&self) -> Vec<u8> ⓘ

Get binary string value

Source

fn get_id(&self) -> u32

Get ID of the indirect object

Source

fn get_generation(&self) -> u32

Get generation of the indirect object

Source

fn into_indirect(self) -> QPdfObject
where Self: Sized + Into<QPdfObject>,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§