pub struct OpDecl {
pub name: &'static str,
pub is_async: bool,
pub is_reentrant: bool,
pub arg_count: u8,
pub metadata: OpMetadata,
/* private fields */
}
Fields§
§name: &'static str
§is_async: bool
§is_reentrant: bool
§arg_count: u8
§metadata: OpMetadata
Any metadata associated with this op.
Implementations§
Source§impl OpDecl
impl OpDecl
Sourcepub fn disable(self) -> Self
pub fn disable(self) -> Self
Returns a copy of this OpDecl
that replaces underlying functions
with noops.
Sourcepub const fn with_implementation_from(self, from: &Self) -> Self
pub const fn with_implementation_from(self, from: &Self) -> Self
Returns a copy of this OpDecl
with the implementation function set to the function from another
OpDecl
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpDecl
impl RefUnwindSafe for OpDecl
impl !Send for OpDecl
impl !Sync for OpDecl
impl Unpin for OpDecl
impl UnwindSafe for OpDecl
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