pub enum TomlSourceType {
Pyproject,
Pipfile,
Poetry,
Unrecognized,
}Variants§
Pyproject
The source is a pyproject.toml.
Pipfile
The source is a Pipfile.
Poetry
The source is a poetry.lock.
Unrecognized
The source is an unrecognized TOML file.
Implementations§
Source§impl TomlSourceType
impl TomlSourceType
Sourcepub const fn is_pyproject(&self) -> bool
pub const fn is_pyproject(&self) -> bool
Returns true if self is of variant Pyproject.
Sourcepub const fn is_pipfile(&self) -> bool
pub const fn is_pipfile(&self) -> bool
Returns true if self is of variant Pipfile.
Sourcepub const fn is_unrecognized(&self) -> bool
pub const fn is_unrecognized(&self) -> bool
Returns true if self is of variant Unrecognized.
Trait Implementations§
Source§impl Clone for TomlSourceType
impl Clone for TomlSourceType
Source§fn clone(&self) -> TomlSourceType
fn clone(&self) -> TomlSourceType
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 TomlSourceType
impl Debug for TomlSourceType
Source§impl PartialEq for TomlSourceType
impl PartialEq for TomlSourceType
impl Copy for TomlSourceType
impl StructuralPartialEq for TomlSourceType
Auto Trait Implementations§
impl Freeze for TomlSourceType
impl RefUnwindSafe for TomlSourceType
impl Send for TomlSourceType
impl Sync for TomlSourceType
impl Unpin for TomlSourceType
impl UnsafeUnpin for TomlSourceType
impl UnwindSafe for TomlSourceType
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