pub struct ProgramType(/* private fields */);Implementations§
Source§impl ProgramType
impl ProgramType
pub const Null: Self
pub const Load: Self
pub const Dynamic: Self
pub const Interpreter: Self
pub const Note: Self
pub const ProgramHeader: Self
pub const ThreadLocalStorage: Self
pub const GnuStack: Self
pub const RiscVAttributes: Self
pub fn validate(self) -> Result<()>
Trait Implementations§
Source§impl Clone for ProgramType
impl Clone for ProgramType
Source§fn clone(&self) -> ProgramType
fn clone(&self) -> ProgramType
Returns a duplicate 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 ProgramType
impl Debug for ProgramType
Source§impl From<ProgramType> for u32
impl From<ProgramType> for u32
Source§fn from(value: ProgramType) -> Self
fn from(value: ProgramType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProgramType
impl PartialEq for ProgramType
Source§impl TryFrom<u32> for ProgramType
impl TryFrom<u32> for ProgramType
impl Copy for ProgramType
impl Eq for ProgramType
impl StructuralPartialEq for ProgramType
Auto Trait Implementations§
impl Freeze for ProgramType
impl RefUnwindSafe for ProgramType
impl Send for ProgramType
impl Sync for ProgramType
impl Unpin for ProgramType
impl UnwindSafe for ProgramType
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