pub struct CustomOpMetadata {
pub name: String,
pub description: String,
pub expected_arity: Option<usize>,
pub is_differentiable: bool,
}Expand description
Custom operation metadata.
Fields§
§name: StringOperation name
description: StringDescription
expected_arity: Option<usize>Expected argument count (None = any)
is_differentiable: boolWhether the operation is differentiable
Trait Implementations§
Source§impl Clone for CustomOpMetadata
impl Clone for CustomOpMetadata
Source§fn clone(&self) -> CustomOpMetadata
fn clone(&self) -> CustomOpMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomOpMetadata
impl RefUnwindSafe for CustomOpMetadata
impl Send for CustomOpMetadata
impl Sync for CustomOpMetadata
impl Unpin for CustomOpMetadata
impl UnwindSafe for CustomOpMetadata
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