pub struct CofFlags(/* private fields */);Expand description
Bit flags stored in a COF header.
Implementations§
Source§impl CofFlags
impl CofFlags
Sourcepub fn new(compressed: bool, encrypted: bool) -> Self
pub fn new(compressed: bool, encrypted: bool) -> Self
Build flag bits from the current compression and encryption booleans.
Sourcepub fn is_compressed(&self) -> bool
pub fn is_compressed(&self) -> bool
Return whether the compressed flag is set.
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Return whether the encrypted flag is set.
Trait Implementations§
impl Copy for CofFlags
impl Eq for CofFlags
impl StructuralPartialEq for CofFlags
Auto Trait Implementations§
impl Freeze for CofFlags
impl RefUnwindSafe for CofFlags
impl Send for CofFlags
impl Sync for CofFlags
impl Unpin for CofFlags
impl UnsafeUnpin for CofFlags
impl UnwindSafe for CofFlags
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