pub struct ContextNode {
pub node_info: NodeInfo,
pub token_estimate: usize,
pub depth: usize,
pub pinned: bool,
}Expand description
A node included in the context slice.
Fields§
§node_info: NodeInfoNode information.
token_estimate: usizeEstimated token count for this node’s source.
depth: usizeHop distance from the target node.
pinned: boolWhether this node was pinned (always included).
Trait Implementations§
Source§impl Clone for ContextNode
impl Clone for ContextNode
Source§fn clone(&self) -> ContextNode
fn clone(&self) -> ContextNode
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextNode
impl Debug for ContextNode
Source§impl<'de> Deserialize<'de> for ContextNode
impl<'de> Deserialize<'de> for ContextNode
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
Auto Trait Implementations§
impl Freeze for ContextNode
impl RefUnwindSafe for ContextNode
impl Send for ContextNode
impl Sync for ContextNode
impl Unpin for ContextNode
impl UnsafeUnpin for ContextNode
impl UnwindSafe for ContextNode
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