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
impl Measures
sourcepub fn calc_fuzzy_match_percent(&mut self)
pub fn calc_fuzzy_match_percent(&mut self)
Average the fuzzy match percentage over total code bytes.
sourcepub fn calc_matched_percent(&mut self)
pub fn calc_matched_percent(&mut self)
Calculate the percentage of matched code, data, and functions.
Trait Implementations§
source§impl AddAssign for Measures
impl AddAssign for Measures
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read more§impl<'de> Deserialize<'de> for Measures
impl<'de> Deserialize<'de> for Measures
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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
impl FromIterator<Measures> for Measures
source§impl Message for Measures
impl Message for Measures
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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,
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,
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,
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,
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,
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,
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 moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
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
.impl Copy for Measures
impl StructuralPartialEq for Measures
Auto Trait Implementations§
impl Freeze for Measures
impl RefUnwindSafe for Measures
impl Send for Measures
impl Sync for Measures
impl Unpin for Measures
impl UnwindSafe for Measures
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)