Module lrs::ops

Operator traits

Description

This module contains traits and structures that are used via special symbols, e.g., +, ==, or ...

Types

KindNameDescription
Trait Add

Objects that implement the binary + operator.

Trait BitAnd

Objects that implement the binary & operator.

Trait BitOr

Objects that implement the binary | operator.

Trait Deref

Objects that implement the immutable dereference operator.

Trait DerefMut

Objects that implement the mutable dereference operator.

Trait Div

Objects that implement the binary / operator.

Trait Drop

Objects with a destructor.

Trait Eq

Objects that implement the binary == and != operators.

Trait Fn

Objects that implement the immutable function call operator.

Trait FnMut

Objects that implement the mutable function call operator.

Trait FnOnce

Objects that implement the consuming function call operator.

Trait Index

Objects that implement the immutable subscript operator.

Trait IndexMut

Objects that implement the mutable subscript operator.

Trait Mul

Objects that implement the binary * operator.

Trait Neg

Objects that implement the unary - operator.

Trait Not

Objects that implement the unary ! operator.

Trait PartialOrd

Objects that implement the binary <, <=, >, and >= operators.

Struct Range

The type representing the bounded M..N syntax.

Struct RangeFrom

The type representing the half-bounded M.. syntax.

Struct RangeFull

The type representing the unbounded .. syntax.

Struct RangeTo

The type representing the half-bounded ..N syntax.

Trait Rem

Objects that implement the binary % operator.

Trait Shl

Objects that implement the binary << operator.

Trait Shr

Objects that implement the binary >> operator.

Trait Sub

Objects that implement the binary - operator.