#[non_exhaustive]pub enum LineEndingStyle {
None,
Square,
Circle,
Diamond,
OpenArrow,
ClosedArrow,
Butt,
ROpenArrow,
RClosedArrow,
Slash,
}Expand description
Line ending style written in /LE (ISO 32000-1 table 166 / §12.5.6.7).
use pdfrum_edit::LineEndingStyle;
assert_eq!(LineEndingStyle::OpenArrow.as_bytes(), b"OpenArrow");
assert_eq!(LineEndingStyle::None.as_bytes(), b"None");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No special ending (/None).
Square
Square.
Circle
Circle.
Diamond
Diamond.
OpenArrow
Open arrow.
ClosedArrow
Closed arrow.
Butt
Butt.
ROpenArrow
Reversed open arrow.
RClosedArrow
Reversed closed arrow.
Slash
Slash.
Implementations§
Trait Implementations§
Source§impl Clone for LineEndingStyle
impl Clone for LineEndingStyle
impl Copy for LineEndingStyle
Source§impl Debug for LineEndingStyle
impl Debug for LineEndingStyle
Source§impl Default for LineEndingStyle
impl Default for LineEndingStyle
impl Eq for LineEndingStyle
Source§impl Hash for LineEndingStyle
impl Hash for LineEndingStyle
Source§impl PartialEq for LineEndingStyle
impl PartialEq for LineEndingStyle
impl StructuralPartialEq for LineEndingStyle
Auto Trait Implementations§
impl Freeze for LineEndingStyle
impl RefUnwindSafe for LineEndingStyle
impl Send for LineEndingStyle
impl Sync for LineEndingStyle
impl Unpin for LineEndingStyle
impl UnsafeUnpin for LineEndingStyle
impl UnwindSafe for LineEndingStyle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.