#[repr(i32)]pub enum ProfileType {
Invalid = 0,
Window = 1,
Flag = 2,
Integer = 3,
}Expand description
The type optimization profiles in use for Op-level optimizations.
Variants§
Implementations§
Source§impl ProfileType
impl ProfileType
Source§impl ProfileType
impl ProfileType
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 ProfileType
impl Clone for ProfileType
Source§fn clone(&self) -> ProfileType
fn clone(&self) -> ProfileType
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 ProfileType
impl Debug for ProfileType
Source§impl Default for ProfileType
impl Default for ProfileType
Source§fn default() -> ProfileType
fn default() -> ProfileType
Returns the “default value” for a type. Read more
Source§impl From<ProfileType> for i32
impl From<ProfileType> for i32
Source§fn from(value: ProfileType) -> i32
fn from(value: ProfileType) -> i32
Converts to this type from the input type.
Source§impl Hash for ProfileType
impl Hash for ProfileType
Source§impl Ord for ProfileType
impl Ord for ProfileType
Source§impl PartialEq for ProfileType
impl PartialEq for ProfileType
Source§impl PartialOrd for ProfileType
impl PartialOrd for ProfileType
Source§impl TryFrom<i32> for ProfileType
impl TryFrom<i32> for ProfileType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProfileType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProfileType, UnknownEnumValue>
Performs the conversion.
impl Copy for ProfileType
impl Eq for ProfileType
impl StructuralPartialEq for ProfileType
Auto Trait Implementations§
impl Freeze for ProfileType
impl RefUnwindSafe for ProfileType
impl Send for ProfileType
impl Sync for ProfileType
impl Unpin for ProfileType
impl UnwindSafe for ProfileType
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)