Struct symbolic_common::CodeId [−][src]
pub struct CodeId { /* fields omitted */ }
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]
impl CodeId
[src]pub fn nil() -> CodeId
[src]
Constructs an empty code identifier.
pub fn new(string: String) -> CodeId
[src]
Constructs a CodeId
from its string representation.
pub fn from_binary(slice: &[u8]) -> CodeId
[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<'de> Deserialize<'de> for CodeId
[src]
impl<'de> Deserialize<'de> for CodeId
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl FromStr for CodeId
[src]
impl FromStr for CodeId
[src]type Err = ParseCodeIdError
The associated error which can be returned from parsing.
pub fn from_str(string: &str) -> Result<CodeId, ParseCodeIdError>
[src]
impl PartialOrd<CodeId> for CodeId
[src]
impl PartialOrd<CodeId> for CodeId
[src]impl Serialize for CodeId
[src]
impl Serialize for CodeId
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for CodeId
[src]
impl StructuralEq for CodeId
[src]impl StructuralPartialEq for CodeId
[src]
impl StructuralPartialEq for CodeId
[src]Auto Trait Implementations
impl RefUnwindSafe for CodeId
impl RefUnwindSafe for CodeId
impl UnwindSafe for CodeId
impl UnwindSafe for CodeId