#[repr(i32)]pub enum WhileLoopUnrolling {
NoUnroll = 0,
DoubleBuffer = 1,
FullUnroll = 2,
}Variants§
NoUnroll = 0
DoubleBuffer = 1
Has the same effect as setting
xla_gpu_enable_while_loop_double_buffering.
FullUnroll = 2
Enables full loop unrolling using the same strategy as DOUBLE_BUFFER.
Implementations§
Source§impl WhileLoopUnrolling
impl WhileLoopUnrolling
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 WhileLoopUnrolling
impl Clone for WhileLoopUnrolling
Source§fn clone(&self) -> WhileLoopUnrolling
fn clone(&self) -> WhileLoopUnrolling
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 WhileLoopUnrolling
impl Debug for WhileLoopUnrolling
Source§impl Default for WhileLoopUnrolling
impl Default for WhileLoopUnrolling
Source§fn default() -> WhileLoopUnrolling
fn default() -> WhileLoopUnrolling
Returns the “default value” for a type. Read more
Source§impl From<WhileLoopUnrolling> for i32
impl From<WhileLoopUnrolling> for i32
Source§fn from(value: WhileLoopUnrolling) -> i32
fn from(value: WhileLoopUnrolling) -> i32
Converts to this type from the input type.
Source§impl Hash for WhileLoopUnrolling
impl Hash for WhileLoopUnrolling
Source§impl Ord for WhileLoopUnrolling
impl Ord for WhileLoopUnrolling
Source§impl PartialEq for WhileLoopUnrolling
impl PartialEq for WhileLoopUnrolling
Source§impl PartialOrd for WhileLoopUnrolling
impl PartialOrd for WhileLoopUnrolling
Source§impl TryFrom<i32> for WhileLoopUnrolling
impl TryFrom<i32> for WhileLoopUnrolling
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<WhileLoopUnrolling, UnknownEnumValue>
fn try_from(value: i32) -> Result<WhileLoopUnrolling, UnknownEnumValue>
Performs the conversion.
impl Copy for WhileLoopUnrolling
impl Eq for WhileLoopUnrolling
impl StructuralPartialEq for WhileLoopUnrolling
Auto Trait Implementations§
impl Freeze for WhileLoopUnrolling
impl RefUnwindSafe for WhileLoopUnrolling
impl Send for WhileLoopUnrolling
impl Sync for WhileLoopUnrolling
impl Unpin for WhileLoopUnrolling
impl UnwindSafe for WhileLoopUnrolling
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)