struct NumericOp<'a> {
name: &'a str,
ret: &'a str,
partial: bool,
args: Rc<[(&'a str, &'a str)]>,
body: &'a str,
etors: bool,
}
Fields§
§name: &'a str
The name of this operation.
ret: &'a str
The return type of this operation.
partial: bool
Whether this operation is partial.
args: Rc<[(&'a str, &'a str)]>
(name, type) pairs of arguments.
body: &'a str
The source text for the constructor’s body.
etors: bool
Whether extractors should be generated for this op.
Must have arity == 1
, ret == bool
, and name.starts_with("is_")
.
Implementations§
Source§impl NumericOp<'_>
impl NumericOp<'_>
fn ops_for_type(ty: &NumericType) -> impl Iterator<Item = NumericOp<'_>>
Trait Implementations§
impl<'a> Eq for NumericOp<'a>
impl<'a> StructuralPartialEq for NumericOp<'a>
Auto Trait Implementations§
impl<'a> Freeze for NumericOp<'a>
impl<'a> RefUnwindSafe for NumericOp<'a>
impl<'a> !Send for NumericOp<'a>
impl<'a> !Sync for NumericOp<'a>
impl<'a> Unpin for NumericOp<'a>
impl<'a> UnwindSafe for NumericOp<'a>
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