#[repr(u8)]pub enum Program_Verification {
Minimal = 0,
InternalConsistency = 1,
}Expand description
Types of validation that the Program can do before parsing the data.
Variants§
Minimal = 0
Do minimal verification of the data, ensuring that the header appears correct.
Has minimal runtime overhead.
InternalConsistency = 1
Do full verification of the data, ensuring that internal pointers are self-consistent and that the data has not been truncated or obviously corrupted. May not catch all types of corruption, but should guard against illegal memory operations during parsing.
Will have higher runtime overhead, scaling with the complexity of the proram data.
Trait Implementations§
source§impl Clone for Program_Verification
impl Clone for Program_Verification
source§fn clone(&self) -> Program_Verification
fn clone(&self) -> Program_Verification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Program_Verification
impl Debug for Program_Verification
source§impl Hash for Program_Verification
impl Hash for Program_Verification
source§impl PartialEq for Program_Verification
impl PartialEq for Program_Verification
impl Eq for Program_Verification
impl StructuralPartialEq for Program_Verification
Auto Trait Implementations§
impl Freeze for Program_Verification
impl RefUnwindSafe for Program_Verification
impl Send for Program_Verification
impl Sync for Program_Verification
impl Unpin for Program_Verification
impl UnwindSafe for Program_Verification
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)