pub struct OpDecl {
pub name: &'static str,
pub is_async: bool,
pub is_reentrant: bool,
pub arg_count: u8,
/* private fields */
}
Fields§
§name: &'static str
§is_async: bool
§is_reentrant: bool
§arg_count: u8
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 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