#[repr(i32)]pub enum ShapeChecks {
Ignore = 0,
Runtime = 1,
CompileTime = 2,
}Variants§
Ignore = 0
Do not insert any shape checks for dynamically shaped operations; output buffers might contain garbage data if shapes don’t match.
Runtime = 1
Check shapes at runtime, will insert an extra synchronization if shapes cannot be proven correct at compile time.
CompileTime = 2
Will refuse to compile any program where shape correctness can not be established at compile time.
Implementations§
Source§impl ShapeChecks
impl ShapeChecks
Source§impl ShapeChecks
impl ShapeChecks
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 ShapeChecks
impl Clone for ShapeChecks
Source§fn clone(&self) -> ShapeChecks
fn clone(&self) -> ShapeChecks
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 ShapeChecks
impl Debug for ShapeChecks
Source§impl Default for ShapeChecks
impl Default for ShapeChecks
Source§fn default() -> ShapeChecks
fn default() -> ShapeChecks
Returns the “default value” for a type. Read more
Source§impl From<ShapeChecks> for i32
impl From<ShapeChecks> for i32
Source§fn from(value: ShapeChecks) -> i32
fn from(value: ShapeChecks) -> i32
Converts to this type from the input type.
Source§impl Hash for ShapeChecks
impl Hash for ShapeChecks
Source§impl Ord for ShapeChecks
impl Ord for ShapeChecks
Source§impl PartialEq for ShapeChecks
impl PartialEq for ShapeChecks
Source§impl PartialOrd for ShapeChecks
impl PartialOrd for ShapeChecks
Source§impl TryFrom<i32> for ShapeChecks
impl TryFrom<i32> for ShapeChecks
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ShapeChecks, UnknownEnumValue>
fn try_from(value: i32) -> Result<ShapeChecks, UnknownEnumValue>
Performs the conversion.
impl Copy for ShapeChecks
impl Eq for ShapeChecks
impl StructuralPartialEq for ShapeChecks
Auto Trait Implementations§
impl Freeze for ShapeChecks
impl RefUnwindSafe for ShapeChecks
impl Send for ShapeChecks
impl Sync for ShapeChecks
impl Unpin for ShapeChecks
impl UnwindSafe for ShapeChecks
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)