pub struct ProjectFilter { /* private fields */ }
Expand description
项目过滤器
Implementations§
Source§impl ProjectFilter
impl ProjectFilter
Sourcepub fn new(config: ScanConfig) -> ProjectFilter
pub fn new(config: ScanConfig) -> ProjectFilter
创建新的过滤器
Sourcepub fn filter_projects(&self, projects: Vec<RustProject>) -> Vec<RustProject>
pub fn filter_projects(&self, projects: Vec<RustProject>) -> Vec<RustProject>
过滤项目列表
Auto Trait Implementations§
impl Freeze for ProjectFilter
impl RefUnwindSafe for ProjectFilter
impl Send for ProjectFilter
impl Sync for ProjectFilter
impl Unpin for ProjectFilter
impl UnwindSafe for ProjectFilter
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