Struct debugid::CodeId [−][src]
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
impl CodeId
[src][−]
pub fn nil() -> Self
[src][−]
Constructs an empty code identifier.
pub fn new(string: String) -> Self
[src][−]
Constructs a CodeId
from its string representation.
pub fn from_binary(slice: &[u8]) -> Self
[src][−]
Constructs a CodeId
from a binary slice.
pub fn is_nil(&self) -> bool
[src][−]
Returns whether this identifier is nil, i.e. it is empty.
pub fn as_str(&self) -> &str
[src][−]
Returns the string representation of this code identifier.
Trait Implementations
impl AsRef<str> for CodeId
[src][+]
impl Clone for CodeId
[src][+]
impl Debug for CodeId
[src][+]
impl Default for CodeId
[src][+]
impl Display for CodeId
[src][+]
impl Eq for CodeId
[src]
impl From<&'_ str> for CodeId
[src][+]
impl From<String> for CodeId
[src][+]
impl FromStr for CodeId
[src][+]
impl Hash for CodeId
[src][+]
impl Ord for CodeId
[src][+]
impl PartialEq<CodeId> for CodeId
[src][+]
impl PartialOrd<CodeId> for CodeId
[src][+]
impl StructuralEq for CodeId
[src]
impl StructuralPartialEq for CodeId
[src]
Auto Trait Implementations
impl RefUnwindSafe for CodeId
impl Send for CodeId
impl Sync for CodeId
impl Unpin for CodeId
impl UnwindSafe for CodeId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,