pub enum OnMalformed {
Abort,
Skip,
}Expand description
Malformed-record policy, re-exported so consumers need not depend on
openbim-step directly to configure a reader.
What to do when a data record cannot be parsed.
Variants§
Abort
Fail the parse. The default: an unreadable record is a hard error.
Skip
Report the record as a diagnostic, resynchronize, and keep parsing.
Trait Implementations§
Source§impl Clone for OnMalformed
impl Clone for OnMalformed
Source§fn clone(&self) -> OnMalformed
fn clone(&self) -> OnMalformed
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 OnMalformed
Source§impl Debug for OnMalformed
impl Debug for OnMalformed
Source§impl Default for OnMalformed
impl Default for OnMalformed
Source§fn default() -> OnMalformed
fn default() -> OnMalformed
Returns the “default value” for a type. Read more
impl Eq for OnMalformed
Source§impl Hash for OnMalformed
impl Hash for OnMalformed
Source§impl PartialEq for OnMalformed
impl PartialEq for OnMalformed
impl StructuralPartialEq for OnMalformed
Auto Trait Implementations§
impl Freeze for OnMalformed
impl RefUnwindSafe for OnMalformed
impl Send for OnMalformed
impl Sync for OnMalformed
impl Unpin for OnMalformed
impl UnsafeUnpin for OnMalformed
impl UnwindSafe for OnMalformed
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