git.delta.rocks / jrsonnet / refs/commits / dfc47a63aff8

difftreelog

source

crates/jrsonnet-rowan-parser/src/unary.rs299 Bsourcehistory
1#[derive(Clone, Copy, Debug, PartialEq, Eq)]2pub enum UnaryOperator {3	Minus,4	Not,5	BitNegate,6}7impl UnaryOperator {8	pub fn binding_power(&self) -> ((), u8) {9		match self {10			UnaryOperator::Minus => ((), 20),11			UnaryOperator::Not => ((), 20),12			UnaryOperator::BitNegate => ((), 20),13		}14	}15}