18 lines
360 B
Rust
18 lines
360 B
Rust
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
|
pub enum PrefixOp {
|
|
/// The `*` operator for dereferencing
|
|
Deref,
|
|
/// The `!` operator for logical inversion
|
|
Not,
|
|
/// The `-` operator for negation
|
|
Neg,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
|
pub enum RangeOp {
|
|
/// `..`
|
|
Exclusive,
|
|
/// `..=`
|
|
Inclusive,
|
|
}
|