pub struct AutoDiff<'ctx> { /* private fields */ }Expand description
A Swift automatic differentiation symbol.
Implementations§
Source§impl<'ctx> AutoDiff<'ctx>
impl<'ctx> AutoDiff<'ctx>
Sourcepub fn kind(&self) -> AutoDiffKind
pub fn kind(&self) -> AutoDiffKind
Get the kind of auto-diff symbol.
Sourcepub fn inner_function(&self) -> Option<Function<'ctx>>
pub fn inner_function(&self) -> Option<Function<'ctx>>
Get the inner function being differentiated, if any.
Trait Implementations§
impl<'ctx> Copy for AutoDiff<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for AutoDiff<'ctx>
impl<'ctx> RefUnwindSafe for AutoDiff<'ctx>
impl<'ctx> !Send for AutoDiff<'ctx>
impl<'ctx> !Sync for AutoDiff<'ctx>
impl<'ctx> Unpin for AutoDiff<'ctx>
impl<'ctx> UnsafeUnpin for AutoDiff<'ctx>
impl<'ctx> UnwindSafe for AutoDiff<'ctx>
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