pub enum OnMalformed {
Abort,
Skip,
}Expand description
What a STEP read does with a data record it cannot parse.
Variants§
Abort
Fail the read. The default: an authoring tool that silently drops entities corrupts the file it edits.
Skip
Skip the record, report it as a diagnostic, and keep reading.
Implementations§
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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.