[][src]Struct measureme::event_id::EventId

#[repr(C)]pub struct EventId(_);

An EventId is a StringId with the additional guarantee that the corresponding string conforms to the event_id grammar.

Implementations

impl EventId[src]

pub const INVALID: EventId[src]

pub fn to_string_id(self) -> StringId[src]

pub fn as_u32(self) -> u32[src]

pub fn from_label(label: StringId) -> EventId[src]

pub fn from_virtual(virtual_id: StringId) -> EventId[src]

pub fn from_u32(raw_id: u32) -> EventId[src]

Create an EventId from a raw u32 value. Only used internally for deserialization.

Trait Implementations

impl Clone for EventId[src]

impl Copy for EventId[src]

impl Debug for EventId[src]

impl Eq for EventId[src]

impl Hash for EventId[src]

impl PartialEq<EventId> for EventId[src]

impl StructuralEq for EventId[src]

impl StructuralPartialEq for EventId[src]

Auto Trait Implementations

impl RefUnwindSafe for EventId

impl Send for EventId

impl Sync for EventId

impl Unpin for EventId

impl UnwindSafe for EventId

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.