pub enum LineEnding {
None,
Square,
Circle,
Diamond,
OpenArrow,
ClosedArrow,
Butt,
ROpenArrow,
RClosedArrow,
Slash,
}Expand description
Line-ending style for /Line, /PolyLine, and free-text callout
annotations per ISO 32000-2 §12.5.6.7 Table 179.
Pass two values to super::AnnotationBuilder::line_endings — the first
applies to the start point, the second to the end point.
Variants§
None
/None — no end cap; the line terminates flush.
Square
/Square — solid square end cap.
Circle
/Circle — solid circle end cap.
Diamond
/Diamond — diamond / rhombus end cap.
OpenArrow
/OpenArrow — open V-shaped arrowhead pointing away from the line.
ClosedArrow
/ClosedArrow — filled triangular arrowhead pointing away from the line.
Butt
/Butt — short perpendicular tick at the end of the line.
ROpenArrow
/ROpenArrow — reversed open arrow (points back along the line).
RClosedArrow
/RClosedArrow — reversed filled arrow (points back along the line).
Slash
/Slash — short diagonal slash at the end of the line.
Trait Implementations§
Source§impl Clone for LineEnding
impl Clone for LineEnding
Source§fn clone(&self) -> LineEnding
fn clone(&self) -> LineEnding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LineEnding
impl Debug for LineEnding
impl Copy for LineEnding
Auto Trait Implementations§
impl Freeze for LineEnding
impl RefUnwindSafe for LineEnding
impl Send for LineEnding
impl Sync for LineEnding
impl Unpin for LineEnding
impl UnsafeUnpin for LineEnding
impl UnwindSafe for LineEnding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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