[−]Struct sentry_types::CodeId
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
pub fn nil() -> CodeId
Constructs an empty code identifier.
pub fn new(string: String) -> CodeId
Constructs a CodeId
from its string representation.
pub fn from_binary(slice: &[u8]) -> CodeId
Constructs a CodeId
from a binary slice.
pub fn is_nil(&self) -> bool
Returns whether this identifier is nil, i.e. it is empty.
pub fn as_str(&self) -> &str
Returns the string representation of this code identifier.
Trait Implementations
impl AsRef<str> for CodeId
impl Clone for CodeId
fn clone(&self) -> CodeId
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CodeId
impl Default for CodeId
impl<'de> Deserialize<'de> for CodeId
fn deserialize<D>(
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
deserializer: D
) -> Result<CodeId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for CodeId
impl Eq for CodeId
impl<'_> From<&'_ str> for CodeId
impl From<String> for CodeId
impl FromStr for CodeId
type Err = ParseCodeIdError
The associated error which can be returned from parsing.
fn from_str(string: &str) -> Result<CodeId, ParseCodeIdError>
impl Hash for CodeId
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CodeId
fn cmp(&self, other: &CodeId) -> Ordering
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<CodeId> for CodeId
impl PartialOrd<CodeId> for CodeId
fn partial_cmp(&self, other: &CodeId) -> Option<Ordering>
fn lt(&self, other: &CodeId) -> bool
fn le(&self, other: &CodeId) -> bool
fn gt(&self, other: &CodeId) -> bool
fn ge(&self, other: &CodeId) -> bool
impl Serialize for CodeId
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for CodeId
impl StructuralPartialEq for CodeId
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,