pub struct OperandTypes {
pub arity: u8,
pub lhs: TypeId,
pub rhs: TypeId,
}Expand description
A single built-in overload’s declared operand types, exposed for the static type checker
(cel_parser::ty::check_expr) — never op_fn, which is execution-only and stays private.
Fields§
§arity: u8Number of operands this overload accepts (1 or 2).
lhs: TypeIdThe LHS (or sole, for arity 1) operand’s TypeId.
rhs: TypeIdThe RHS operand’s TypeId; equal to lhs for a homogeneous or arity-1 overload.
Trait Implementations§
Source§impl Clone for OperandTypes
impl Clone for OperandTypes
Source§fn clone(&self) -> OperandTypes
fn clone(&self) -> OperandTypes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperandTypes
Source§impl Debug for OperandTypes
impl Debug for OperandTypes
impl Eq for OperandTypes
Source§impl PartialEq for OperandTypes
impl PartialEq for OperandTypes
impl StructuralPartialEq for OperandTypes
Auto Trait Implementations§
impl Freeze for OperandTypes
impl RefUnwindSafe for OperandTypes
impl Send for OperandTypes
impl Sync for OperandTypes
impl Unpin for OperandTypes
impl UnsafeUnpin for OperandTypes
impl UnwindSafe for OperandTypes
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