Struct kasm::Function[][src]

pub struct Function { /* fields omitted */ }

Implementations

impl Function[src]

pub fn new(name: &str, instructions: Vec<Instruction>, size: u16) -> Function[src]

pub fn parse(
    token_iter: &mut Peekable<Iter<'_, Token>>,
    location_counter: &mut u32,
    label_manager: &mut LabelManager
) -> ParseResult<Function>
[src]

pub fn instructions(&self) -> &Vec<Instruction>[src]

pub fn name(&self) -> String[src]

pub fn size(&self) -> u16[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.