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