#[repr(i32)]pub enum CompilationEvent {
UnknownEvent = 0,
FirstCompilation = 1,
Recompilation = 2,
}Expand description
The compilation event that triggered the use of the profile.
Variants§
Implementations§
Source§impl CompilationEvent
impl CompilationEvent
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for CompilationEvent
impl Clone for CompilationEvent
Source§fn clone(&self) -> CompilationEvent
fn clone(&self) -> CompilationEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilationEvent
impl Debug for CompilationEvent
Source§impl Default for CompilationEvent
impl Default for CompilationEvent
Source§fn default() -> CompilationEvent
fn default() -> CompilationEvent
Returns the “default value” for a type. Read more
Source§impl From<CompilationEvent> for i32
impl From<CompilationEvent> for i32
Source§fn from(value: CompilationEvent) -> i32
fn from(value: CompilationEvent) -> i32
Converts to this type from the input type.
Source§impl Hash for CompilationEvent
impl Hash for CompilationEvent
Source§impl Ord for CompilationEvent
impl Ord for CompilationEvent
Source§impl PartialEq for CompilationEvent
impl PartialEq for CompilationEvent
Source§impl PartialOrd for CompilationEvent
impl PartialOrd for CompilationEvent
Source§impl TryFrom<i32> for CompilationEvent
impl TryFrom<i32> for CompilationEvent
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CompilationEvent, UnknownEnumValue>
fn try_from(value: i32) -> Result<CompilationEvent, UnknownEnumValue>
Performs the conversion.
impl Copy for CompilationEvent
impl Eq for CompilationEvent
impl StructuralPartialEq for CompilationEvent
Auto Trait Implementations§
impl Freeze for CompilationEvent
impl RefUnwindSafe for CompilationEvent
impl Send for CompilationEvent
impl Sync for CompilationEvent
impl Unpin for CompilationEvent
impl UnwindSafe for CompilationEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)