bindiff_rs

Struct BinDiff

Source
pub struct BinDiff { /* private fields */ }
Expand description

Struct to handle SQLite database operations

Implementations§

Source§

impl BinDiff

Source

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>

Open a connection to the SQLite database

Source

pub fn close(self) -> Result<(), Error>

Source

pub fn read_metadata(&self) -> Result<Metadata>

Source

pub fn read_file(&self) -> Result<File>

Read all function matches from the database

Source

pub fn count_function_matches(&self) -> Result<usize>

Count the number of function matches

Source

pub fn read_function_matches(&self) -> Result<Vec<FunctionMatch>>

Source

pub fn count_basic_block_matches(&self) -> Result<usize>

Count the number of basic block matches

Source

pub fn read_basic_block_matches(&self) -> Result<Vec<BasicBlockMatch>>

Source

pub fn count_instruction_matches(&self) -> Result<usize>

Count the number of instruction matches

Source

pub fn read_instruction_matches(&self) -> Result<Vec<Instruction>>

Auto Trait Implementations§

§

impl !Freeze for BinDiff

§

impl !RefUnwindSafe for BinDiff

§

impl Send for BinDiff

§

impl !Sync for BinDiff

§

impl Unpin for BinDiff

§

impl !UnwindSafe for BinDiff

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.