Struct symbolic::common::CodeId [−]
pub struct CodeId { /* fields omitted */ }
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
impl<'de> Deserialize<'de> for CodeId
impl<'de> Deserialize<'de> for CodeId
pub fn deserialize<D>(
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub 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
type Err = ParseCodeIdError
type Err = ParseCodeIdError
The associated error which can be returned from parsing.
impl PartialOrd<CodeId> for CodeId
impl PartialOrd<CodeId> for CodeId
pub fn partial_cmp(&self, other: &CodeId) -> Option<Ordering>
pub fn partial_cmp(&self, other: &CodeId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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 StructuralEq for CodeId
impl StructuralPartialEq for CodeId
Auto Trait Implementations
impl RefUnwindSafe for CodeId
impl UnwindSafe for CodeId
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more