pub struct ComplexityConfig {
pub rows: u32,
pub nnz: u32,
pub algorithm: Option<String>,
}Expand description
Configuration for complexity estimation.
Fields§
§rows: u32Number of rows in the matrix.
nnz: u32Number of non-zero entries.
algorithm: Option<String>Algorithm to estimate for.
Trait Implementations§
Source§impl FromNapiValue for ComplexityConfig
impl FromNapiValue for ComplexityConfig
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 ComplexityConfig
impl ToNapiValue for ComplexityConfig
Source§unsafe fn to_napi_value(
env: napi_env,
val: ComplexityConfig,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ComplexityConfig, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ComplexityConfig
impl TypeName for ComplexityConfig
Source§impl ValidateNapiValue for ComplexityConfig
impl ValidateNapiValue for ComplexityConfig
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for ComplexityConfig
impl RefUnwindSafe for ComplexityConfig
impl Send for ComplexityConfig
impl Sync for ComplexityConfig
impl Unpin for ComplexityConfig
impl UnsafeUnpin for ComplexityConfig
impl UnwindSafe for ComplexityConfig
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