#[non_exhaustive]pub enum OpDTypeRule {
MatchInput,
PromoteFloat,
Explicit,
}Expand description
Uniform dtype relationship declared by an operation schema.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MatchInput
Inputs and outputs retain one dtype.
PromoteFloat
Inputs are promoted to a floating-point result.
Explicit
Operation-specific validation and inference is required.
Trait Implementations§
Source§impl Clone for OpDTypeRule
impl Clone for OpDTypeRule
impl Copy for OpDTypeRule
Source§impl Debug for OpDTypeRule
impl Debug for OpDTypeRule
Source§impl Default for OpDTypeRule
impl Default for OpDTypeRule
impl Eq for OpDTypeRule
Source§impl PartialEq for OpDTypeRule
impl PartialEq for OpDTypeRule
impl StructuralPartialEq for OpDTypeRule
Auto Trait Implementations§
impl Forget for OpDTypeRule
impl Freeze for OpDTypeRule
impl Move for OpDTypeRule
impl RefUnwindSafe for OpDTypeRule
impl Send for OpDTypeRule
impl Sync for OpDTypeRule
impl Unpin for OpDTypeRule
impl UnsafeUnpin for OpDTypeRule
impl UnwindSafe for OpDTypeRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more