Struct fast_paths::FastGraph32[][src]

pub struct FastGraph32 {
    pub ranks: Vec<u32>,
    pub edges_fwd: Vec<FastGraphEdge32>,
    pub first_edge_ids_fwd: Vec<u32>,
    pub edges_bwd: Vec<FastGraphEdge32>,
    pub first_edge_ids_bwd: Vec<u32>,
    // some fields omitted
}

Special graph data-structure that is identical to FastGraph except that it uses u32 integers instead of usize integers. This is used to store a FastGraph in a 32bit representation on disk when using a 64bit system.

Fields

ranks: Vec<u32>edges_fwd: Vec<FastGraphEdge32>first_edge_ids_fwd: Vec<u32>edges_bwd: Vec<FastGraphEdge32>first_edge_ids_bwd: Vec<u32>

Implementations

impl FastGraph32[src]

pub fn new(fast_graph: &FastGraph) -> Self[src]

Creates a 32bit Graph from a given FastGraph. All (potentially 64bit) usize integers are simply converted to u32 and if a value exceeds the 32bit limit an error is thrown. The only exception is std::u32::MAX, which is converted to std::usize::MAX.

pub fn convert_to_usize(self) -> FastGraph[src]

Converts a 32bit Graph to an actual FastGraph using usize such that it can be used with FastPaths crate. Any integers that equal std::u32::MAX are mapped to std::usize::MAX.

Trait Implementations

impl Clone for FastGraph32[src]

impl Debug for FastGraph32[src]

impl<'de> Deserialize<'de> for FastGraph32[src]

impl Serialize for FastGraph32[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.