Struct include_graph::dependencies::graph::GraphBuilder
source · pub struct GraphBuilder { /* private fields */ }Implementations§
source§impl GraphBuilder
impl GraphBuilder
pub fn new(paths: impl Iterator<Item = PathMapping>) -> Self
pub fn known_path(&self, path: &Path) -> bool
pub fn group_extensions(&mut self, extensions: &[&str])
pub fn color_from(&mut self, group_name: &str, color: &str)
pub fn color_to(&mut self, group_name: &str, color: &str)
pub fn build(self) -> Graph
pub fn add_link(&mut self, from: &Path, to: &Path)
pub fn add_groups_from_gn( &mut self, gn_groups: Vec<GnTarget>, ignore_targets: HashSet<String> )
pub fn define_group<T, P>(&mut self, group_name: &str, color: &str, items: T)
pub fn zoom_in(&mut self, group: &str, focused: bool)
Trait Implementations§
source§impl Debug for GraphBuilder
impl Debug for GraphBuilder
source§impl Default for GraphBuilder
impl Default for GraphBuilder
source§fn default() -> GraphBuilder
fn default() -> GraphBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl UnwindSafe 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
source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more