Enum dstv::prelude::ElementType
source · pub enum ElementType {
None,
Header,
OuterBorder,
InnerBorder,
PowderPointNotes,
PunchPoint,
Hole,
Numeration,
Bends,
Cuts,
EndOfFile,
}Expand description
Enum to represent the different types of elements in a DSTV file The enum is used to parse the DSTV file into a vector of DSTV elements The enum is also used to determine which DSTV elements to include in the final output
Variants§
None
No element type, used for empty lines or lines that are not valid DSTV element identifiers
Header
The header of the DSTV file
OuterBorder
The outer border of the DSTV file
InnerBorder
The inner border of the DSTV file
PowderPointNotes
The powder point notes of the DSTV file
PunchPoint
The punch points of the DSTV file
Hole
The holes of the DSTV file
Numeration
The numeration of the DSTV file
Bends
The bends of the DSTV file
Cuts
The cuts of the DSTV file
EndOfFile
The end of file identifier of the DSTV file
Implementations§
source§impl ElementType
impl ElementType
sourcepub fn parse_dstv_element(&self, lines: &Vec<&str>) -> Vec<Box<dyn DstvElement>>
pub fn parse_dstv_element(&self, lines: &Vec<&str>) -> Vec<Box<dyn DstvElement>>
Trait Implementations§
source§impl Debug for ElementType
impl Debug for ElementType
source§impl Hash for ElementType
impl Hash for ElementType
source§impl PartialEq<ElementType> for ElementType
impl PartialEq<ElementType> for ElementType
source§fn eq(&self, other: &ElementType) -> bool
fn eq(&self, other: &ElementType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ElementType
impl StructuralEq for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations§
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnwindSafe for ElementType
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