pub struct RenderedCandidate {
pub raw: RawCandidate,
pub score: MatchScore,
pub match_ranges: Vec<Range<usize>>,
pub annotations: Vec<Annotation>,
}Expand description
What the renderer paints. Annotators append to annotations;
the renderer paints each typed Annotation with the style
that category resolves to, joined by two spaces of row-styled
padding. MARG.1 (2026-06-03): replaced Vec<String> with
Vec<Annotation> so annotation category survives into the
paint path.
Fields§
§raw: RawCandidate§score: MatchScore§match_ranges: Vec<Range<usize>>§annotations: Vec<Annotation>Implementations§
Source§impl RenderedCandidate
impl RenderedCandidate
pub fn from_scored(s: ScoredCandidate) -> Self
Trait Implementations§
Source§impl Clone for RenderedCandidate
impl Clone for RenderedCandidate
Source§fn clone(&self) -> RenderedCandidate
fn clone(&self) -> RenderedCandidate
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RenderedCandidate
impl !UnwindSafe for RenderedCandidate
impl Freeze for RenderedCandidate
impl Send for RenderedCandidate
impl Sync for RenderedCandidate
impl Unpin for RenderedCandidate
impl UnsafeUnpin for RenderedCandidate
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