pub struct PdfName(/* private fields */);Implementations§
Source§impl PdfName
impl PdfName
Sourcepub fn new(s: &str) -> Self
pub fn new(s: &str) -> Self
Creates a name. Names matching a common PDF key borrow a static string and allocate nothing; arbitrary names are owned (same cost as before). Dictionary inserts call this on every key, so the static fast path removes thousands of small allocations when building documents.
pub fn as_str(&self) -> &str
Trait Implementations§
impl Eq for PdfName
impl StructuralPartialEq for PdfName
Auto Trait Implementations§
impl Freeze for PdfName
impl RefUnwindSafe for PdfName
impl Send for PdfName
impl Sync for PdfName
impl Unpin for PdfName
impl UnsafeUnpin for PdfName
impl UnwindSafe for PdfName
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