pub struct CodeId { /* private fields */ }
Expand description
Unique platform-dependent identifier of code files.
This identifier assumes a string representation that depends on the platform and compiler used. The representation only retains hex characters and canonically stores lower case.
There are the following known formats:
- MachO UUID: The unique identifier of a Mach binary, specified in the
LC_UUID
load command header. - GNU Build ID: Contents of the
.gnu.build-id
note or section contents formatted as lowercase hex string. - PE Timestamp: Timestamp and size of image values from a Windows PE header. The size of
image value is truncated, so the length of the
CodeId
might not be a multiple of 2.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for CodeId
impl<'de> Deserialize<'de> for CodeId
source§fn deserialize<D>(
deserializer: D,
) -> Result<CodeId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<CodeId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for CodeId
impl Ord for CodeId
source§impl PartialOrd for CodeId
impl PartialOrd for CodeId
source§impl Serialize for CodeId
impl Serialize for CodeId
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CodeId
impl StructuralPartialEq for CodeId
Auto Trait Implementations§
impl Freeze for CodeId
impl RefUnwindSafe for CodeId
impl Send for CodeId
impl Sync for CodeId
impl Unpin for CodeId
impl UnwindSafe for CodeId
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.