pub struct CodeSignature(/* private fields */);
Expand description
Program Code Signature
The first 16 bytes of a VEX user code binary contain a user code signature, containing some basic metadata and startup flags about the program. This signature must be at the start of the binary for booting to occur.
Implementations§
Source§impl CodeSignature
impl CodeSignature
Sourcepub const fn new(
program_type: ProgramType,
owner: ProgramOwner,
flags: ProgramFlags,
) -> Self
pub const fn new( program_type: ProgramType, owner: ProgramOwner, flags: ProgramFlags, ) -> Self
Creates a new signature given a program type, owner, and flags.
Trait Implementations§
Source§impl Clone for CodeSignature
impl Clone for CodeSignature
Source§fn clone(&self) -> CodeSignature
fn clone(&self) -> CodeSignature
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 CodeSignature
impl Debug for CodeSignature
Source§impl PartialEq for CodeSignature
impl PartialEq for CodeSignature
impl Copy for CodeSignature
impl Eq for CodeSignature
impl StructuralPartialEq for CodeSignature
Auto Trait Implementations§
impl Freeze for CodeSignature
impl RefUnwindSafe for CodeSignature
impl Send for CodeSignature
impl Sync for CodeSignature
impl Unpin for CodeSignature
impl UnwindSafe for CodeSignature
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