Struct klinker::ArgumentSection[][src]

pub struct ArgumentSection { /* fields omitted */ }

Implementations

impl ArgumentSection[src]

pub fn new() -> ArgumentSection[src]

pub fn add(&mut self, value: KOSValue) -> Result<usize, Box<dyn Error>>[src]

Adds a KOSValue to the argument section, but checks if the argument already exists Returns the index into the argument section that this argument is at

pub fn add_no_check(&mut self, value: KOSValue) -> usize[src]

Unconditionally adds a KOSValue to the argument section Returns the index into the argument section that this argument is at

pub fn write(
    &mut self,
    writer: &mut KSMFileWriter
) -> Result<(), Box<dyn Error>>
[src]

pub fn get_addr(&self, index: u32) -> Result<u32, Box<dyn Error>>[src]

pub fn get_addr_bytes(&mut self) -> u32[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.