pub struct BuiltinOperator {
pub op: BinOp,
pub runtime_fn: &'static str,
pub invert_result: bool,
}Expand description
An operator overload for a built-in type.
Fields§
§op: BinOpThe operator being overloaded
runtime_fn: &'static strRuntime function to call (e.g., __gruel_str_eq)
invert_result: boolWhether to invert the result (for != using == implementation)
Trait Implementations§
Source§impl Clone for BuiltinOperator
impl Clone for BuiltinOperator
Source§fn clone(&self) -> BuiltinOperator
fn clone(&self) -> BuiltinOperator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuiltinOperator
impl Debug for BuiltinOperator
impl Copy for BuiltinOperator
Auto Trait Implementations§
impl Freeze for BuiltinOperator
impl RefUnwindSafe for BuiltinOperator
impl Send for BuiltinOperator
impl Sync for BuiltinOperator
impl Unpin for BuiltinOperator
impl UnwindSafe for BuiltinOperator
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