objdiff_core::bindings::report

Struct Measures

source
pub struct Measures {
Show 16 fields pub fuzzy_match_percent: f32, pub total_code: u64, pub matched_code: u64, pub matched_code_percent: f32, pub total_data: u64, pub matched_data: u64, pub matched_data_percent: f32, pub total_functions: u32, pub matched_functions: u32, pub matched_functions_percent: f32, pub complete_code: u64, pub complete_code_percent: f32, pub complete_data: u64, pub complete_data_percent: f32, pub total_units: u32, pub complete_units: u32,
}
Expand description

Progress info for a report or unit

Fields§

§fuzzy_match_percent: f32

Overall match percent, including partially matched functions and data

§total_code: u64

Total size of code in bytes

§matched_code: u64

Fully matched code size in bytes

§matched_code_percent: f32

Fully matched code percent

§total_data: u64

Total size of data in bytes

§matched_data: u64

Fully matched data size in bytes

§matched_data_percent: f32

Fully matched data percent

§total_functions: u32

Total number of functions

§matched_functions: u32

Fully matched functions

§matched_functions_percent: f32

Fully matched functions percent

§complete_code: u64

Completed (or “linked”) code size in bytes

§complete_code_percent: f32

Completed (or “linked”) code percent

§complete_data: u64

Completed (or “linked”) data size in bytes

§complete_data_percent: f32

Completed (or “linked”) data percent

§total_units: u32

Total number of units

§complete_units: u32

Completed (or “linked”) units

Implementations§

source§

impl Measures

source

pub fn calc_fuzzy_match_percent(&mut self)

Average the fuzzy match percentage over total code bytes.

source

pub fn calc_matched_percent(&mut self)

Calculate the percentage of matched code, data, and functions.

Trait Implementations§

source§

impl AddAssign for Measures

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl Clone for Measures

source§

fn clone(&self) -> Measures

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Measures

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Measures

source§

fn default() -> Self

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Measures

§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl FromIterator<Measures> for Measures

Allows collect to be used on an iterator of Measures.

source§

fn from_iter<T>(iter: T) -> Self
where T: IntoIterator<Item = Measures>,

Creates a value from an iterator. Read more
source§

impl Message for Measures

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Measures

source§

fn eq(&self, other: &Measures) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for Measures

§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Measures

source§

impl StructuralPartialEq for Measures

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,