pub struct OpDef {
pub id: &'static str,
pub dialect: &'static str,
pub category: Category,
pub signature: Signature,
pub lowerings: LoweringTable,
pub laws: &'static [AlgebraicLaw],
pub compose: Option<fn() -> Program>,
}Expand description
Frozen operation definition.
Fields§
§id: &'static strStable operation id.
dialect: &'static strStable dialect namespace.
category: CategoryOperation category.
signature: SignatureOperation signature.
lowerings: LoweringTableBackend lowering entries.
laws: &'static [AlgebraicLaw]Algebraic laws declared for conformance.
compose: Option<fn() -> Program>Composition-inlinable program builder.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpDef
impl RefUnwindSafe for OpDef
impl Send for OpDef
impl Sync for OpDef
impl Unpin for OpDef
impl UnsafeUnpin for OpDef
impl UnwindSafe for OpDef
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