pub struct Recommendation {
pub candidate: &'static ModelCandidate,
pub budget_bytes: u64,
pub budget_source: BudgetSource,
pub headroom_bytes: u64,
}Expand description
A candidate plus the reasoning that selected it.
Fields§
§candidate: &'static ModelCandidateThe chosen model.
budget_bytes: u64The memory figure it was sized against.
budget_source: BudgetSourceWhere that figure came from.
headroom_bytes: u64Budget left over after the candidate’s requirement.
Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
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 Recommendation
impl Debug for Recommendation
Source§impl PartialEq for Recommendation
impl PartialEq for Recommendation
Source§fn eq(&self, other: &Recommendation) -> bool
fn eq(&self, other: &Recommendation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Recommendation
impl Eq for Recommendation
impl StructuralPartialEq for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnsafeUnpin for Recommendation
impl UnwindSafe for Recommendation
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