rsleigh 0.4.1

SLEIGH (.slaspec) parser and Rust decoder/P-code emitter codegen — Ghidra-compatible disassembly in pure Rust
Documentation
use crate::Span;

#[derive(Clone, Debug)]
pub struct UserFunction {
    name: Box<str>,
    location: Span,
}

impl UserFunction {
    pub(crate) fn new(name: Box<str>, location: Span) -> Self {
        Self { name, location }
    }
    pub fn name(&self) -> &str {
        &self.name
    }
    pub fn location(&self) -> &Span {
        &self.location
    }
}