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