Struct kerbalobjects::ksm::sections::ArgIndex
source · pub struct ArgIndex(_);
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§
source§impl PartialEq<ArgIndex> for ArgIndex
impl PartialEq<ArgIndex> for ArgIndex
impl Copy for ArgIndex
impl Eq for ArgIndex
impl StructuralEq for ArgIndex
impl StructuralPartialEq for ArgIndex
Auto Trait Implementations§
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