pub struct PageRankResult {
pub scores: Vec<f64>,
pub iterations: u32,
pub residual: f64,
pub converged: bool,
pub time_us: u32,
}Expand description
Result of PageRank computation.
Fields§
§scores: Vec<f64>PageRank scores for each node (sums to 1.0).
iterations: u32Number of iterations performed.
residual: f64Final convergence residual.
converged: boolWhether the computation converged.
time_us: u32Wall-clock time in microseconds.
Trait Implementations§
Source§impl FromNapiValue for PageRankResult
impl FromNapiValue for PageRankResult
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 PageRankResult
impl ToNapiValue for PageRankResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: PageRankResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: PageRankResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for PageRankResult
impl TypeName for PageRankResult
Source§impl ValidateNapiValue for PageRankResult
impl ValidateNapiValue for PageRankResult
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 PageRankResult
impl RefUnwindSafe for PageRankResult
impl Send for PageRankResult
impl Sync for PageRankResult
impl Unpin for PageRankResult
impl UnsafeUnpin for PageRankResult
impl UnwindSafe for PageRankResult
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