pub struct GraphOptions {
pub hops: usize,
pub include_auto: bool,
pub include_symbols: bool,
pub direction: GraphDirection,
pub max_edges: usize,
pub type_filter: Option<Vec<NodeType>>,
}Expand description
Options for neighborhood.
Fields§
§hops: usizeMax BFS depth from the root (1 = direct neighbors only).
include_auto: boolInclude soft auto_* edges (default true).
include_symbols: boolInclude symbol nodes as neighbors (default true).
direction: GraphDirectionEdge direction filter.
max_edges: usizeCap on edges returned (prevents huge dumps).
type_filter: Option<Vec<NodeType>>If set, only include neighbors whose type is in this list.
Trait Implementations§
Source§impl Clone for GraphOptions
impl Clone for GraphOptions
Source§fn clone(&self) -> GraphOptions
fn clone(&self) -> GraphOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphOptions
impl Debug for GraphOptions
Auto Trait Implementations§
impl Freeze for GraphOptions
impl RefUnwindSafe for GraphOptions
impl Send for GraphOptions
impl Sync for GraphOptions
impl Unpin for GraphOptions
impl UnsafeUnpin for GraphOptions
impl UnwindSafe for GraphOptions
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