pub struct FnSparseModel<F> { /* private fields */ }Implementations§
Source§impl<F> FnSparseModel<F>
impl<F> FnSparseModel<F>
pub fn new(predict_fn: F) -> Self
pub fn with_n_features(self, n_features: usize) -> Self
pub fn with_n_outputs(self, n_outputs: usize) -> Self
Trait Implementations§
Source§impl<F> SparsePredict for FnSparseModel<F>
impl<F> SparsePredict for FnSparseModel<F>
Auto Trait Implementations§
impl<F> Freeze for FnSparseModel<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnSparseModel<F>where
F: RefUnwindSafe,
impl<F> Send for FnSparseModel<F>where
F: Send,
impl<F> Sync for FnSparseModel<F>where
F: Sync,
impl<F> Unpin for FnSparseModel<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnSparseModel<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnSparseModel<F>where
F: UnwindSafe,
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