pub struct LineAnnotation {
pub endpoints: Option<[f32; 4]>,
pub line_endings: (LineEnding, LineEnding),
pub caption: bool,
pub caption_offset: Option<[f32; 2]>,
pub leader_line: f32,
pub leader_line_extension: f32,
pub leader_line_offset: f32,
}Expand description
A line annotation (ISO 32000-2 §12.5.6.7).
Fields§
§endpoints: Option<[f32; 4]>The line endpoints [x1, y1, x2, y2].
line_endings: (LineEnding, LineEnding)Line ending styles [start, end].
caption: boolWhether a caption is shown.
caption_offset: Option<[f32; 2]>Caption offset [horizontal, vertical].
leader_line: f32Leader line length.
leader_line_extension: f32Leader line extension.
leader_line_offset: f32Leader line offset.
Implementations§
Source§impl LineAnnotation
impl LineAnnotation
Sourcepub fn from_annot(annot: &Annotation<'_>) -> Self
pub fn from_annot(annot: &Annotation<'_>) -> Self
Extract line annotation properties.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineAnnotation
impl RefUnwindSafe for LineAnnotation
impl Send for LineAnnotation
impl Sync for LineAnnotation
impl Unpin for LineAnnotation
impl UnsafeUnpin for LineAnnotation
impl UnwindSafe for LineAnnotation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more