pub enum PrepareContext {
Package,
AuthoredLocal,
Project,
}Variants§
Package
A package root (a dependency, or the package being published): its mars.toml must
declare [package], and a root with no manifest is read as the dialect it looks like.
AuthoredLocal
A consumer’s own authored directory (.mars-src): content without a manifest is Mars
convention, and a mars.toml without [package] is consumer configuration, not read.
Project
A directory that is either: Package unless its mars.toml has no [package], which
makes it a consumer project whose tree is read as AuthoredLocal content.
Trait Implementations§
Source§impl Clone for PrepareContext
impl Clone for PrepareContext
impl Copy for PrepareContext
Source§impl Debug for PrepareContext
impl Debug for PrepareContext
Source§impl<'de> Deserialize<'de> for PrepareContext
impl<'de> Deserialize<'de> for PrepareContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PrepareContext
Source§impl PartialEq for PrepareContext
impl PartialEq for PrepareContext
Source§impl Serialize for PrepareContext
impl Serialize for PrepareContext
impl StructuralPartialEq for PrepareContext
Auto Trait Implementations§
impl Forget for PrepareContext
impl Freeze for PrepareContext
impl RefUnwindSafe for PrepareContext
impl Send for PrepareContext
impl Sync for PrepareContext
impl Unpin for PrepareContext
impl UnsafeUnpin for PrepareContext
impl UnwindSafe for PrepareContext
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.