pub struct SelectionContext {
pub file_count: usize,
pub avg_importance: f64,
pub dependency_density: f64,
pub budget_ratio: f64,
pub dominant_file_type: String,
pub project_size: ProjectSize,
pub time_constraint: TimeConstraint,
}
Expand description
Context features for bandit decision making
Fields§
§file_count: usize
Number of available files
avg_importance: f64
Average file importance score
dependency_density: f64
Dependency graph density (edges/nodes)
budget_ratio: f64
Budget constraint ratio (available/total)
dominant_file_type: String
Dominant file type (source, test, config, etc.)
project_size: ProjectSize
Project size category (small, medium, large)
time_constraint: TimeConstraint
Time constraint (tight, normal, relaxed)
Trait Implementations§
Source§impl Clone for SelectionContext
impl Clone for SelectionContext
Source§fn clone(&self) -> SelectionContext
fn clone(&self) -> SelectionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 SelectionContext
impl Debug for SelectionContext
Source§impl<'de> Deserialize<'de> for SelectionContext
impl<'de> Deserialize<'de> for SelectionContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SelectionContext
impl RefUnwindSafe for SelectionContext
impl Send for SelectionContext
impl Sync for SelectionContext
impl Unpin for SelectionContext
impl UnwindSafe for SelectionContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more