#[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
Source§fn clone(&self) -> LineEndingStyle
fn clone(&self) -> LineEndingStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineEndingStyle
Source§impl Debug for LineEndingStyle
impl Debug for LineEndingStyle
Source§impl Default for LineEndingStyle
impl Default for LineEndingStyle
Source§fn default() -> LineEndingStyle
fn default() -> LineEndingStyle
Returns the “default value” for a type. Read more
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