pub struct SearchEnvironment { /* private fields */ }Expand description
ファイル検索環境
検索結果から正解ファイルを見つけるシナリオ。
Implementations§
Source§impl SearchEnvironment
impl SearchEnvironment
Sourcepub fn new(
files: Vec<String>,
target_file: impl Into<String>,
target_content: impl Into<String>,
) -> Self
pub fn new( files: Vec<String>, target_file: impl Into<String>, target_content: impl Into<String>, ) -> Self
新しい環境を作成
Sourcepub fn basic_scenario() -> Self
pub fn basic_scenario() -> Self
基本シナリオ: 5ファイルから1つの正解を探す
Sourcepub fn medium_scenario() -> Self
pub fn medium_scenario() -> Self
中規模シナリオ: 10ファイルから1つの正解を探す
Sourcepub fn large_scenario() -> Self
pub fn large_scenario() -> Self
大規模シナリオ: 20ファイルから1つの正解を探す
Sourcepub fn custom_scenario(
file_count: usize,
target_index: usize,
seed: u64,
) -> Self
pub fn custom_scenario( file_count: usize, target_index: usize, seed: u64, ) -> Self
カスタムシナリオ: ファイル数と正解位置を指定
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SearchEnvironment
impl RefUnwindSafe for SearchEnvironment
impl Send for SearchEnvironment
impl Sync for SearchEnvironment
impl Unpin for SearchEnvironment
impl UnwindSafe for SearchEnvironment
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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