pub struct GraphBuilder { /* private fields */ }Implementations§
Source§impl GraphBuilder
impl GraphBuilder
pub fn new(store: Box<dyn GraphStore>) -> Self
pub fn new_directed(store: Box<dyn GraphStore>) -> Self
pub fn store(&self) -> &dyn GraphStore
pub fn is_directed(&self) -> bool
pub fn set_directed(&mut self, directed: bool)
pub fn add_nodes(&self, nodes: Vec<Node>) -> Result<()>
pub fn add_edges(&self, edges: Vec<Edge>) -> Result<()>
pub fn build_from_fragments( &self, fragments: Vec<(String, Vec<Node>, Vec<Edge>)>, ) -> Result<()>
pub fn merge(&self, new_nodes: Vec<Node>, new_edges: Vec<Edge>) -> Result<()>
pub fn merge_with_prune( &self, new_nodes: Vec<Node>, new_edges: Vec<Edge>, prune_sources: &[String], ) -> Result<(usize, usize)>
pub fn label_dedup(&self) -> Result<usize>
pub fn lang_filter_inferred_calls(&self) -> Result<usize>
pub fn normalize_source_file(&self, root: &Path) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for GraphBuilder
impl !UnwindSafe for GraphBuilder
impl Freeze for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl UnsafeUnpin for GraphBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more