pub enum MarkerKind {
File(&'static str),
Directory(&'static str),
Extension(&'static str),
AllOf(Vec<&'static str>),
AnyOf(Vec<&'static str>),
}Expand description
Types of markers that can identify a project
Variants§
File(&'static str)
Exact filename match (e.g., “package.json”)
Directory(&'static str)
Exact directory name match (e.g., “node_modules”)
Extension(&'static str)
File with specific extension
AllOf(Vec<&'static str>)
Multiple files (all must exist)
AnyOf(Vec<&'static str>)
Multiple files (any must exist)
Implementations§
Trait Implementations§
Source§impl Clone for MarkerKind
impl Clone for MarkerKind
Source§fn clone(&self) -> MarkerKind
fn clone(&self) -> MarkerKind
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 moreAuto Trait Implementations§
impl Freeze for MarkerKind
impl RefUnwindSafe for MarkerKind
impl Send for MarkerKind
impl Sync for MarkerKind
impl Unpin for MarkerKind
impl UnwindSafe for MarkerKind
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