Struct arithmetic_typing::arith::Ops
source · pub struct Ops;
Expand description
Constraint
for numeric types that can participate in binary arithmetic ops (T op T
).
Defined as a subset of Lin
types without dynamically sized slices and
any types containing dynamically sized slices.
Trait Implementations§
source§impl<Prim: LinearType> Constraint<Prim> for Ops
impl<Prim: LinearType> Constraint<Prim> for Ops
source§fn visitor<'r>(
&self,
substitutions: &'r mut Substitutions<Prim>,
errors: OpErrors<'r, Prim>
) -> Box<dyn Visit<Prim> + 'r>
fn visitor<'r>( &self, substitutions: &'r mut Substitutions<Prim>, errors: OpErrors<'r, Prim> ) -> Box<dyn Visit<Prim> + 'r>
source§fn clone_boxed(&self) -> Box<dyn Constraint<Prim>>
fn clone_boxed(&self) -> Box<dyn Constraint<Prim>>
Clones this constraint into a
Box
. Read moreimpl Copy for Ops
impl Eq for Ops
impl StructuralEq for Ops
impl StructuralPartialEq for Ops
Auto Trait Implementations§
impl RefUnwindSafe for Ops
impl Send for Ops
impl Sync for Ops
impl Unpin for Ops
impl UnwindSafe for Ops
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