pub struct BoundedEdges {
pub total: usize,
pub truncated: bool,
pub omitted: Vec<OmittedEdges>,
pub edges: Vec<ContextEdge>,
}Expand description
One direction of a bounded bundle: the edges kept, and an exact account of what was dropped to fit.
Fields§
§total: usizeHow many edges this node has in this direction, before the cap.
truncated: boolWhether edges is a subset of them.
omitted: Vec<OmittedEdges>What was dropped, by edge kind. Empty when truncated is false.
This is the difference between a bounded answer and a misleading one: a
model that asks what main.rs imports and is handed 50 of its 269 edges
must be able to see that 23 imports edges exist, rather than conclude
from their absence that there are none.
edges: Vec<ContextEdge>Trait Implementations§
Source§impl Clone for BoundedEdges
impl Clone for BoundedEdges
Source§fn clone(&self) -> BoundedEdges
fn clone(&self) -> BoundedEdges
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 BoundedEdges
impl Debug for BoundedEdges
Source§impl<'de> Deserialize<'de> for BoundedEdges
impl<'de> Deserialize<'de> for BoundedEdges
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 PartialEq for BoundedEdges
impl PartialEq for BoundedEdges
Source§impl Serialize for BoundedEdges
impl Serialize for BoundedEdges
impl StructuralPartialEq for BoundedEdges
Auto Trait Implementations§
impl Freeze for BoundedEdges
impl RefUnwindSafe for BoundedEdges
impl Send for BoundedEdges
impl Sync for BoundedEdges
impl Unpin for BoundedEdges
impl UnsafeUnpin for BoundedEdges
impl UnwindSafe for BoundedEdges
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