pub enum BinOps {
Show 14 variants
Add,
Sub,
Mult,
Div,
FloorDiv,
Mod,
Pow,
LShift,
RShift,
BitOr,
BitXor,
BitAnd,
MatMult,
Unknown,
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BinOps
impl<'de> Deserialize<'de> for BinOps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> FromPyObject<'a> for BinOps
impl<'a> FromPyObject<'a> for BinOps
Source§impl FromPythonString for BinOps
impl FromPythonString for BinOps
Source§impl PythonOperator for BinOps
impl PythonOperator for BinOps
Source§fn to_rust_op(&self) -> Result<TokenStream, Box<dyn Error>>
fn to_rust_op(&self) -> Result<TokenStream, Box<dyn Error>>
Convert the operator to its Rust equivalent TokenStream.
Source§fn precedence(&self) -> u8
fn precedence(&self) -> u8
Get the operator precedence for proper parenthesization.
Source§fn is_unknown(&self) -> bool
fn is_unknown(&self) -> bool
Check if this operator is unknown/unimplemented.
impl StructuralPartialEq for BinOps
Auto Trait Implementations§
impl Freeze for BinOps
impl RefUnwindSafe for BinOps
impl Send for BinOps
impl Sync for BinOps
impl Unpin for BinOps
impl UnwindSafe for BinOps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ErrorContext for Twhere
T: Debug,
impl<T> ErrorContext for Twhere
T: Debug,
Source§fn with_context(&self, operation: &str) -> String
fn with_context(&self, operation: &str) -> String
Generate a standardized error message with context.