pub struct PromptInspectionEntry { /* private fields */ }Expand description
Explainable inspection row for one input prompt segment.
Implementations§
Source§impl PromptInspectionEntry
impl PromptInspectionEntry
Sourcepub const fn module_id(&self) -> &PromptModuleId
pub const fn module_id(&self) -> &PromptModuleId
Returns source module.
Sourcepub const fn segment_id(&self) -> &PromptSegmentId
pub const fn segment_id(&self) -> &PromptSegmentId
Returns source segment.
Sourcepub const fn provenance(&self) -> &PromptProvenance
pub const fn provenance(&self) -> &PromptProvenance
Returns source provenance.
Sourcepub const fn trust(&self) -> TrustLevel
pub const fn trust(&self) -> TrustLevel
Returns trust label.
Sourcepub const fn cache_scope(&self) -> CacheScope
pub const fn cache_scope(&self) -> CacheScope
Returns cache scope.
Sourcepub const fn disposition(&self) -> SegmentDisposition
pub const fn disposition(&self) -> SegmentDisposition
Returns final disposition.
Sourcepub const fn byte_range(&self) -> Option<&Range<usize>>
pub const fn byte_range(&self) -> Option<&Range<usize>>
Returns exact output content range, excluding separators.
Sourcepub const fn rendered_bytes(&self) -> usize
pub const fn rendered_bytes(&self) -> usize
Returns rendered content bytes excluding separators.
Sourcepub const fn estimated_tokens(&self) -> usize
pub const fn estimated_tokens(&self) -> usize
Returns conservative rendered-content token estimate.
Trait Implementations§
Source§impl Clone for PromptInspectionEntry
impl Clone for PromptInspectionEntry
Source§fn clone(&self) -> PromptInspectionEntry
fn clone(&self) -> PromptInspectionEntry
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 PromptInspectionEntry
impl Debug for PromptInspectionEntry
impl Eq for PromptInspectionEntry
Source§impl PartialEq for PromptInspectionEntry
impl PartialEq for PromptInspectionEntry
impl StructuralPartialEq for PromptInspectionEntry
Auto Trait Implementations§
impl Freeze for PromptInspectionEntry
impl RefUnwindSafe for PromptInspectionEntry
impl Send for PromptInspectionEntry
impl Sync for PromptInspectionEntry
impl Unpin for PromptInspectionEntry
impl UnsafeUnpin for PromptInspectionEntry
impl UnwindSafe for PromptInspectionEntry
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