pub struct ResolveCandidate<'a> {
pub name: &'a str,
pub type_matches: &'a [ModelTypeMatch],
pub match_names: &'a [&'a str],
}Expand description
The resolution-relevant slice of one compiled target. Borrowed views so
tests can drive the rules with synthetic declarations and production
wraps TargetPtxSets without copying module blobs.
Fields§
§name: &'a strKernel-target directory name (KernelTarget::model), e.g.
"qwen3.8-27b". Multi-quant builds repeat a name with different
quants; same-name candidates are never ambiguous with each other
(the downstream quant-compat gate arbitrates quant).
type_matches: &'a [ModelTypeMatch][[model_types]] declarations from MODEL.toml.
match_names: &'a [&'a str][model] match_names needles from MODEL.toml. Empty when the
target never collides (build.rs enforces presence on collision).
Auto Trait Implementations§
impl<'a> Freeze for ResolveCandidate<'a>
impl<'a> RefUnwindSafe for ResolveCandidate<'a>
impl<'a> Send for ResolveCandidate<'a>
impl<'a> Sync for ResolveCandidate<'a>
impl<'a> Unpin for ResolveCandidate<'a>
impl<'a> UnwindSafe for ResolveCandidate<'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