Struct twiggy_ir::ItemsBuilder [−][src]
pub struct ItemsBuilder { /* fields omitted */ }
Build up a a set of Items
.
Methods
impl ItemsBuilder
[src]
impl ItemsBuilder
pub fn new(size: u32) -> ItemsBuilder
[src]
pub fn new(size: u32) -> ItemsBuilder
Construct a new builder, with the given size.
pub fn add_item(&mut self, item: Item) -> Id
[src]
pub fn add_item(&mut self, item: Item) -> Id
Add the given item to to the graph and return the Id
that it was
assigned.
pub fn add_root(&mut self, item: Item) -> Id
[src]
pub fn add_root(&mut self, item: Item) -> Id
Add the given item to the graph as a root and return the Id
that it
was assigned.
pub fn add_edge(&mut self, from: Id, to: Id)
[src]
pub fn add_edge(&mut self, from: Id, to: Id)
Add an edge between the given keys that have already been parsed into items.
pub fn link_data(&mut self, offset: i64, len: usize, id: Id)
[src]
pub fn link_data(&mut self, offset: i64, len: usize, id: Id)
Add a range of static data and the Id
that defines it.
pub fn get_data(&self, offset: u32) -> Option<Id>
[src]
pub fn get_data(&self, offset: u32) -> Option<Id>
Locate the data section defining memory at the given offset.
pub fn finish(self) -> Items
[src]
pub fn finish(self) -> Items
Finish building the IR graph and return the resulting Items
.
Trait Implementations
impl Debug for ItemsBuilder
[src]
impl Debug for ItemsBuilder
Auto Trait Implementations
impl Send for ItemsBuilder
impl Send for ItemsBuilder
impl Sync for ItemsBuilder
impl Sync for ItemsBuilder