[]Struct sentry::internals::CodeId

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:

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

impl Debug for CodeId

impl Default for CodeId

impl<'de> Deserialize<'de> for CodeId

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.

impl Hash for CodeId

impl Ord for CodeId

impl PartialEq<CodeId> for CodeId

impl PartialOrd<CodeId> for CodeId

impl Serialize for CodeId

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,