pub struct InkSpec { /* private fields */ }Expand description
A freehand ink annotation (/Subtype /Ink).
Implementations§
Source§impl InkSpec
impl InkSpec
An ink annotation.
Sets /T, the author.
Sourcepub fn name(self, name: impl Into<String>) -> AnnotWrite
pub fn name(self, name: impl Into<String>) -> AnnotWrite
An ink annotation.
Sets /NM, the annotation’s unique name.
Sourcepub fn modified(self, modified: impl Into<String>) -> AnnotWrite
pub fn modified(self, modified: impl Into<String>) -> AnnotWrite
An ink annotation.
Sets /M, the modification date.
Sourcepub fn flags(self, flags: AnnotFlags) -> AnnotWrite
pub fn flags(self, flags: AnnotFlags) -> AnnotWrite
An ink annotation.
Sets /F, the annotation flags.
Sourcepub fn meta(self, meta: AnnotMeta) -> AnnotWrite
pub fn meta(self, meta: AnnotMeta) -> AnnotWrite
An ink annotation.
Sets every metadata field at once.
Trait Implementations§
Source§impl From<InkSpec> for AnnotWrite
impl From<InkSpec> for AnnotWrite
impl StructuralPartialEq for InkSpec
Auto Trait Implementations§
impl Freeze for InkSpec
impl RefUnwindSafe for InkSpec
impl Send for InkSpec
impl Sync for InkSpec
impl Unpin for InkSpec
impl UnsafeUnpin for InkSpec
impl UnwindSafe for InkSpec
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