pub enum MiningStrategy {
Random,
HardNegative,
SemiHard,
DistanceWeighted,
}Expand description
Mining strategy for negative selection
Variants§
Trait Implementations§
Source§impl Clone for MiningStrategy
impl Clone for MiningStrategy
Source§fn clone(&self) -> MiningStrategy
fn clone(&self) -> MiningStrategy
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 moreSource§impl From<MiningStrategy> for MiningStrategy
impl From<MiningStrategy> for MiningStrategy
Source§fn from(ms: MiningStrategy) -> Self
fn from(ms: MiningStrategy) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for MiningStrategy
impl FromNapiValue for MiningStrategy
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for MiningStrategy
impl ToNapiValue for MiningStrategy
Source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more
Source§impl TypeName for MiningStrategy
impl TypeName for MiningStrategy
Source§impl ValidateNapiValue for MiningStrategy
impl ValidateNapiValue for MiningStrategy
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
impl Copy for MiningStrategy
Auto Trait Implementations§
impl Freeze for MiningStrategy
impl RefUnwindSafe for MiningStrategy
impl Send for MiningStrategy
impl Sync for MiningStrategy
impl Unpin for MiningStrategy
impl UnsafeUnpin for MiningStrategy
impl UnwindSafe for MiningStrategy
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