pub struct SurfaceRequest<'a> {
pub mode: SurfaceMode<'a>,
pub budget: usize,
pub explain: bool,
pub policy: SurfacePolicy,
pub semantic: Option<&'a dyn SemanticScorer>,
}Expand description
One surface render request: the mode, the token budget, whether to explain selection scores, the pipeline policy, and the optional semantic scorer.
Fields§
§mode: SurfaceMode<'a>§budget: usize§explain: bool§policy: SurfacePolicy§semantic: Option<&'a dyn SemanticScorer>The optional semantic scorer (SCC-071, e.g. an embedding model):
when present, its per-entity score feeds the REAL 10% semantic
share of final_importance. When None, the 10% share is
explicitly redistributed across the other blend weights
([REDISTRIBUTION_SCALE]) — never a phantom weight.
Trait Implementations§
Source§impl<'a> Clone for SurfaceRequest<'a>
impl<'a> Clone for SurfaceRequest<'a>
impl<'a> Copy for SurfaceRequest<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SurfaceRequest<'a>
impl<'a> !UnwindSafe for SurfaceRequest<'a>
impl<'a> Freeze for SurfaceRequest<'a>
impl<'a> Send for SurfaceRequest<'a>
impl<'a> Sync for SurfaceRequest<'a>
impl<'a> Unpin for SurfaceRequest<'a>
impl<'a> UnsafeUnpin for SurfaceRequest<'a>
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