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]
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 Clone for FastGraph32
[src]fn clone(&self) -> FastGraph32
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for FastGraph32
[src]
impl<'de> Deserialize<'de> for FastGraph32
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for FastGraph32
[src]
impl Serialize for FastGraph32
[src]Auto Trait Implementations
impl RefUnwindSafe for FastGraph32
impl RefUnwindSafe for FastGraph32
impl Send for FastGraph32
impl Send for FastGraph32
impl Sync for FastGraph32
impl Sync for FastGraph32
impl Unpin for FastGraph32
impl Unpin for FastGraph32
impl UnwindSafe for FastGraph32
impl UnwindSafe for FastGraph32
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]