Struct mapfile_parser::MapFile
source · pub struct MapFile {
pub segments_list: Vec<Segment>,
pub debugging: bool,
}Fields§
§segments_list: Vec<Segment>§debugging: boolImplementations§
source§impl MapFile
impl MapFile
pub fn new() -> Self
pub fn read_map_file(&mut self, map_path: PathBuf)
pub fn filter_by_section_type(&self, section_type: &str) -> MapFile
pub fn get_every_file_except_section_type(&self, section_type: &str) -> MapFile
pub fn find_symbol_by_name(&self, sym_name: &str) -> Option<FoundSymbolInfo>
pub fn find_symbol_by_vram_or_vrom( &self, address: u64 ) -> Option<FoundSymbolInfo>
pub fn find_lowest_differing_symbol( &self, other_map_file: MapFile ) -> Option<(Symbol, File, Option<Symbol>)>
pub fn mix_folders(&self) -> MapFile
pub fn get_progress( &self, asm_path: PathBuf, nonmatchings: PathBuf, aliases: HashMap<String, String>, path_index: usize ) -> (ProgressStats, HashMap<String, ProgressStats>)
sourcepub fn compare_files_and_symbols(
&self,
other_map_file: MapFile,
check_other_on_self: bool
) -> MapsComparisonInfo
pub fn compare_files_and_symbols( &self, other_map_file: MapFile, check_other_on_self: bool ) -> MapsComparisonInfo
Useful for finding bss reorders
pub fn to_csv(&self, print_vram: bool, skip_without_symbols: bool) -> String
pub fn to_csv_symbols(&self) -> String
pub fn print_as_csv(&self, print_vram: bool, skip_without_symbols: bool)
pub fn print_symbols_csv(&self)
Trait Implementations§
source§impl PyClassImpl for MapFile
impl PyClassImpl for MapFile
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = ThreadCheckerStub<MapFile>
type ThreadChecker = ThreadCheckerStub<MapFile>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<MapFile> for PyClassImplCollector<MapFile>
impl PyClassNewTextSignature<MapFile> for PyClassImplCollector<MapFile>
fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<MapFile> for PyClassImplCollector<MapFile>
impl PyMethods<MapFile> for PyClassImplCollector<MapFile>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for MapFile
impl PyTypeInfo for MapFile
§type AsRefTarget = PyCell<MapFile>
type AsRefTarget = PyCell<MapFile>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.Auto Trait Implementations§
impl RefUnwindSafe for MapFile
impl Send for MapFile
impl Sync for MapFile
impl Unpin for MapFile
impl UnwindSafe for MapFile
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