pub struct GraphData {
pub nodes: Vec<NodeRec>,
pub edges: Vec<EdgeRec>,
pub metadata: Vec<Option<MetadataRec>>,
}Expand description
Graph data container for serialization
Format compatible with StorageManager file layout:
- Node count (u64 LE)
- Node records (N * 72 bytes)
- Edge count (u64 LE)
- Edge records (M * 48 bytes)
- Metadata count (u64 LE)
- Metadata records (K * 176 bytes)
Fields§
§nodes: Vec<NodeRec>§edges: Vec<EdgeRec>§metadata: Vec<Option<MetadataRec>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphData
impl RefUnwindSafe for GraphData
impl Send for GraphData
impl Sync for GraphData
impl Unpin for GraphData
impl UnsafeUnpin for GraphData
impl UnwindSafe for GraphData
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