pub struct SquareSpec { /* private fields */ }Expand description
A square / area annotation (/Subtype /Square).
Implementations§
Source§impl SquareSpec
impl SquareSpec
Source§impl SquareSpec
impl SquareSpec
Sourcepub fn contents(self, contents: impl Into<String>) -> Self
pub fn contents(self, contents: impl Into<String>) -> Self
A square annotation.
Sets /Contents.
A square annotation.
Sets /T, the author.
Sourcepub fn name(self, name: impl Into<String>) -> AnnotWrite
pub fn name(self, name: impl Into<String>) -> AnnotWrite
A square 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 square annotation.
Sets /M, the modification date.
Sourcepub fn flags(self, flags: AnnotFlags) -> AnnotWrite
pub fn flags(self, flags: AnnotFlags) -> AnnotWrite
A square annotation.
Sets /F, the annotation flags.
Sourcepub fn meta(self, meta: AnnotMeta) -> AnnotWrite
pub fn meta(self, meta: AnnotMeta) -> AnnotWrite
A square annotation.
Sets every metadata field at once.
Trait Implementations§
Source§impl Clone for SquareSpec
impl Clone for SquareSpec
Source§impl Debug for SquareSpec
impl Debug for SquareSpec
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<SquareSpec> for AnnotSpec
impl From<SquareSpec> for AnnotSpec
Source§fn from(b: SquareSpec) -> Self
fn from(b: SquareSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SquareSpec
impl PartialEq for SquareSpec
impl StructuralPartialEq for SquareSpec
Auto Trait Implementations§
impl Freeze for SquareSpec
impl RefUnwindSafe for SquareSpec
impl Send for SquareSpec
impl Sync for SquareSpec
impl Unpin for SquareSpec
impl UnsafeUnpin for SquareSpec
impl UnwindSafe for SquareSpec
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.