pub struct UnifiedVisitor { /* private fields */ }Expand description
Unified visitor that handles collection and cleanup operations
Implementations§
Source§impl UnifiedVisitor
impl UnifiedVisitor
Sourcepub fn new_for_collection(module_name: &str, file_path: Option<&Path>) -> Self
pub fn new_for_collection(module_name: &str, file_path: Option<&Path>) -> Self
Create a new unified visitor for collection
Sourcepub fn new_for_removal_with_callback(
module_name: &str,
file_path: Option<&Path>,
should_remove: ShouldRemoveCallback,
) -> Self
pub fn new_for_removal_with_callback( module_name: &str, file_path: Option<&Path>, should_remove: ShouldRemoveCallback, ) -> Self
Create a new unified visitor for removal with a callback
Sourcepub fn new_for_removal(
module_name: &str,
file_path: Option<&Path>,
before_version: Option<&str>,
remove_all: bool,
current_version: Option<&str>,
) -> Self
pub fn new_for_removal( module_name: &str, file_path: Option<&Path>, before_version: Option<&str>, remove_all: bool, current_version: Option<&str>, ) -> Self
Create a new unified visitor for removal with version criteria
Sourcepub fn process_source(self, source: String) -> Result<UnifiedResult>
pub fn process_source(self, source: String) -> Result<UnifiedResult>
Process source code according to the operation mode
Sourcepub fn get_builtins(&self) -> &HashSet<String>
pub fn get_builtins(&self) -> &HashSet<String>
Get the builtins set
Auto Trait Implementations§
impl Freeze for UnifiedVisitor
impl !RefUnwindSafe for UnifiedVisitor
impl !Send for UnifiedVisitor
impl !Sync for UnifiedVisitor
impl Unpin for UnifiedVisitor
impl UnsafeUnpin for UnifiedVisitor
impl !UnwindSafe for UnifiedVisitor
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