pub struct SetupPyMigrationSource;
Implementations§
Source§impl SetupPyMigrationSource
impl SetupPyMigrationSource
pub fn extract_bracket_content( &self, content: &str, start_pos: usize, ) -> Option<String>
pub fn extract_description(project_dir: &Path) -> Result<Option<String>>
pub fn extract_setup_content(content: &str) -> Result<String>
pub fn extract_parameter(content: &str, param_name: &str) -> Option<String>
pub fn extract_string_value(line: &str) -> Option<String>
pub fn extract_url(project_dir: &Path) -> Result<Option<String>>
Trait Implementations§
Source§impl MigrationSource for SetupPyMigrationSource
impl MigrationSource for SetupPyMigrationSource
Source§fn extract_dependencies(&self, project_dir: &Path) -> Result<Vec<Dependency>>
fn extract_dependencies(&self, project_dir: &Path) -> Result<Vec<Dependency>>
Extracts dependencies from the project directory
Auto Trait Implementations§
impl Freeze for SetupPyMigrationSource
impl RefUnwindSafe for SetupPyMigrationSource
impl Send for SetupPyMigrationSource
impl Sync for SetupPyMigrationSource
impl Unpin for SetupPyMigrationSource
impl UnwindSafe for SetupPyMigrationSource
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> 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