Skip to main content

HypergraphPageRankScratch

Struct HypergraphPageRankScratch 

Source
pub struct HypergraphPageRankScratch<'scratch, S> { /* private fields */ }
Expand description

Borrowed scratch storage for incidence/bipartite hypergraph PageRank.

§Performance

Construction is O(1). teleport must cover element_bound + relation_bound, while next_elements and next_relations cover their respective bounds.

Implementations§

Source§

impl<'scratch, S> HypergraphPageRankScratch<'scratch, S>

Source

pub const fn new( teleport: &'scratch mut [S], next_elements: &'scratch mut [S], next_relations: &'scratch mut [S], visible_elements: &'scratch mut [u8], visible_relations: &'scratch mut [u8], ) -> Self

Constructs borrowed hypergraph PageRank scratch from caller-owned slices.

§Performance

This function is O(1).

Source

pub const fn teleport_capacity(&self) -> usize

Returns current teleport scratch capacity.

§Performance

This function is O(1).

Trait Implementations§

Source§

impl<'scratch, S: Debug> Debug for HypergraphPageRankScratch<'scratch, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'scratch, S> !UnwindSafe for HypergraphPageRankScratch<'scratch, S>

§

impl<'scratch, S> Freeze for HypergraphPageRankScratch<'scratch, S>

§

impl<'scratch, S> RefUnwindSafe for HypergraphPageRankScratch<'scratch, S>
where S: RefUnwindSafe,

§

impl<'scratch, S> Send for HypergraphPageRankScratch<'scratch, S>
where S: Send,

§

impl<'scratch, S> Sync for HypergraphPageRankScratch<'scratch, S>
where S: Sync,

§

impl<'scratch, S> Unpin for HypergraphPageRankScratch<'scratch, S>

§

impl<'scratch, S> UnsafeUnpin for HypergraphPageRankScratch<'scratch, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.