pub struct AnnotWrite {
pub spec: AnnotSpec,
pub meta: AnnotMeta,
}Fields§
§spec: AnnotSpecSubtype-specific fields.
meta: AnnotMetaAuthor / name / date.
Implementations§
Source§impl AnnotWrite
impl AnnotWrite
Sourcepub fn with_contents(self, contents: impl Into<String>) -> Self
pub fn with_contents(self, contents: impl Into<String>) -> Self
Sets /Contents on the inner spec (same rules as AnnotSpec::with_contents).
Sets /T.
Sourcepub fn with_modified(self, modified: impl Into<String>) -> Self
pub fn with_modified(self, modified: impl Into<String>) -> Self
Sets /M.
Sourcepub fn with_flags(self, flags: AnnotFlags) -> Self
pub fn with_flags(self, flags: AnnotFlags) -> Self
Sets /F annotation flags.
Sourcepub fn with_opacity(self, opacity: f32) -> Self
pub fn with_opacity(self, opacity: f32) -> Self
Sets /CA, the constant opacity, from 0.0 to 1.0.
Sourcepub fn contents(self, contents: impl Into<String>) -> Self
pub fn contents(self, contents: impl Into<String>) -> Self
Sets /Contents. The bare-verb spelling the typed builders use, so a
chain that starts on a builder keeps reading the same way after the
first metadata setter hands back an AnnotWrite.
Sets /T, the author. See AnnotWrite::contents on the spelling.
Sourcepub fn flags(self, flags: AnnotFlags) -> Self
pub fn flags(self, flags: AnnotFlags) -> Self
Sets /F, the annotation flags.
Trait Implementations§
Source§impl Clone for AnnotWrite
impl Clone for AnnotWrite
Source§impl Debug for AnnotWrite
impl Debug for AnnotWrite
Source§impl From<AnnotSpec> for AnnotWrite
impl From<AnnotSpec> for AnnotWrite
Source§impl From<CaretSpec> for AnnotWrite
impl From<CaretSpec> for AnnotWrite
Source§impl From<CircleSpec> for AnnotWrite
impl From<CircleSpec> for AnnotWrite
Source§fn from(builder: CircleSpec) -> Self
fn from(builder: CircleSpec) -> Self
Converts to this type from the input type.
Source§impl From<FreeTextSpec> for AnnotWrite
impl From<FreeTextSpec> for AnnotWrite
Source§fn from(builder: FreeTextSpec) -> Self
fn from(builder: FreeTextSpec) -> Self
Converts to this type from the input type.
Source§impl From<InkSpec> for AnnotWrite
impl From<InkSpec> for AnnotWrite
Source§impl From<LineSpec> for AnnotWrite
impl From<LineSpec> for AnnotWrite
Source§impl From<LinkSpec> for AnnotWrite
impl From<LinkSpec> for AnnotWrite
Source§impl From<MarkupSpec> for AnnotWrite
impl From<MarkupSpec> for AnnotWrite
Source§fn from(builder: MarkupSpec) -> Self
fn from(builder: MarkupSpec) -> Self
Converts to this type from the input type.
Source§impl From<SquareSpec> for AnnotWrite
impl From<SquareSpec> for AnnotWrite
Source§fn from(builder: SquareSpec) -> Self
fn from(builder: SquareSpec) -> Self
Converts to this type from the input type.
Source§impl From<TextSpec> for AnnotWrite
impl From<TextSpec> for AnnotWrite
Source§impl PartialEq for AnnotWrite
impl PartialEq for AnnotWrite
impl StructuralPartialEq for AnnotWrite
Auto Trait Implementations§
impl Freeze for AnnotWrite
impl RefUnwindSafe for AnnotWrite
impl Send for AnnotWrite
impl Sync for AnnotWrite
impl Unpin for AnnotWrite
impl UnsafeUnpin for AnnotWrite
impl UnwindSafe for AnnotWrite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.