pub struct ArgIndex(/* private fields */);
Expand description
A wrapper type that represents an index into the argument section of a KSM file.
This type implements From
This is a kOS-governed type that is an index into the bytes of an argument section.
Implementations§
Source§impl ArgIndex
impl ArgIndex
Sourcepub fn parse(
source: &mut BufferIterator<'_>,
index_bytes: IntSize,
) -> Result<Self, ()>
pub fn parse( source: &mut BufferIterator<'_>, index_bytes: IntSize, ) -> Result<Self, ()>
Tries to parse an ArgIndex from the byte source provided, and the NumArgIndexBytes from the argument section header.
Returns either the ArgIndex, or an Err(()), which can only happen if we ran out of bytes.
Trait Implementations§
impl Copy for ArgIndex
impl Eq for ArgIndex
impl StructuralPartialEq for ArgIndex
Auto Trait Implementations§
impl Freeze for ArgIndex
impl RefUnwindSafe for ArgIndex
impl Send for ArgIndex
impl Sync for ArgIndex
impl Unpin for ArgIndex
impl UnwindSafe for ArgIndex
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