pub struct GraphData {
pub nodes: Vec<Node>,
pub edges: Vec<(usize, usize, Edge)>,
}Expand description
Intermediate representation for (de)serialization.
Fields§
§nodes: Vec<Node>§edges: Vec<(usize, usize, Edge)>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphData
impl<'de> Deserialize<'de> for GraphData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CodePropertyGraph> for GraphData
impl From<&CodePropertyGraph> for GraphData
Source§fn from(cpg: &CodePropertyGraph) -> Self
fn from(cpg: &CodePropertyGraph) -> Self
Converts to this type from the input type.
Source§impl From<GraphData> for CodePropertyGraph
impl From<GraphData> for CodePropertyGraph
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