pub struct SectionDiff {
pub name: String,
pub kind: i32,
pub size: u64,
pub address: u64,
pub functions: Vec<FunctionDiff>,
pub data: Vec<DataDiff>,
pub match_percent: Option<f32>,
}
Fields§
§name: String
§kind: i32
§size: u64
§address: u64
§functions: Vec<FunctionDiff>
§data: Vec<DataDiff>
§match_percent: Option<f32>
Implementations§
source§impl SectionDiff
impl SectionDiff
sourcepub fn kind(&self) -> SectionKind
pub fn kind(&self) -> SectionKind
Returns the enum value of kind
, or the default if the field is set to an invalid enum value.
sourcepub fn set_kind(&mut self, value: SectionKind)
pub fn set_kind(&mut self, value: SectionKind)
Sets kind
to the provided enum value.
sourcepub fn match_percent(&self) -> f32
pub fn match_percent(&self) -> f32
Returns the value of match_percent
, or the default value if match_percent
is unset.
source§impl SectionDiff
impl SectionDiff
pub fn new( obj: &ObjInfo, section_index: usize, section_diff: &ObjSectionDiff, ) -> Self
Trait Implementations§
source§impl Clone for SectionDiff
impl Clone for SectionDiff
source§fn clone(&self) -> SectionDiff
fn clone(&self) -> SectionDiff
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SectionDiff
impl Debug for SectionDiff
source§impl Default for SectionDiff
impl Default for SectionDiff
§impl<'de> Deserialize<'de> for SectionDiff
impl<'de> Deserialize<'de> for SectionDiff
§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 Message for SectionDiff
impl Message for SectionDiff
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
.source§impl PartialEq for SectionDiff
impl PartialEq for SectionDiff
§impl Serialize for SectionDiff
impl Serialize for SectionDiff
impl StructuralPartialEq for SectionDiff
Auto Trait Implementations§
impl Freeze for SectionDiff
impl RefUnwindSafe for SectionDiff
impl Send for SectionDiff
impl Sync for SectionDiff
impl Unpin for SectionDiff
impl UnwindSafe for SectionDiff
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
)