pub enum StandardDeclaration<S> {
Declared(S),
Workspace,
Inherited(S),
}Expand description
One declared standard-field value as it travels from the
manifest to the resolved package model. Mirrors the
DependencySource::Workspace contract: cabin-manifest
constructs Declared (literal) or Workspace (the
{ workspace = true } opt-in marker), cabin-workspace
rewrites every marker into Inherited(value) before any
consumer sees the Package, and a marker that survives past
the loader is a workspace invariant violation. Marker
semantics deliberately split by consumer: .is_some()-based
relevance checks (imposes_requirement,
find_standard_flag_conflicts, is_empty) count an
unresolved marker as a declaration, while the *_value()
accessors treat it as absent - both cases are unreachable
post-loader under the rewrite invariant.
Variants§
Declared(S)
Literal value written in this manifest → source package
(or target for a target-level field).
Workspace
Unresolved { workspace = true } opt-in marker.
Inherited(S)
Value resolved from the workspace root’s [workspace]
declaration → source workspace.
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for StandardDeclaration<S>
impl<S: Clone> Clone for StandardDeclaration<S>
Source§fn clone(&self) -> StandardDeclaration<S>
fn clone(&self) -> StandardDeclaration<S>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<S: Copy> Copy for StandardDeclaration<S>
Source§impl<S: Debug> Debug for StandardDeclaration<S>
impl<S: Debug> Debug for StandardDeclaration<S>
Source§impl<'de, S: Deserialize<'de>> Deserialize<'de> for StandardDeclaration<S>
impl<'de, S: Deserialize<'de>> Deserialize<'de> for StandardDeclaration<S>
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>,
impl<S: Eq> Eq for StandardDeclaration<S>
Source§impl<S: PartialEq> PartialEq for StandardDeclaration<S>
impl<S: PartialEq> PartialEq for StandardDeclaration<S>
Source§fn eq(&self, other: &StandardDeclaration<S>) -> bool
fn eq(&self, other: &StandardDeclaration<S>) -> bool
self and other values to be equal, and is used by ==.Source§impl<S: Serialize> Serialize for StandardDeclaration<S>
impl<S: Serialize> Serialize for StandardDeclaration<S>
impl<S: PartialEq> StructuralPartialEq for StandardDeclaration<S>
Auto Trait Implementations§
impl<S> Freeze for StandardDeclaration<S>where
S: Freeze,
impl<S> RefUnwindSafe for StandardDeclaration<S>where
S: RefUnwindSafe,
impl<S> Send for StandardDeclaration<S>where
S: Send,
impl<S> Sync for StandardDeclaration<S>where
S: Sync,
impl<S> Unpin for StandardDeclaration<S>where
S: Unpin,
impl<S> UnsafeUnpin for StandardDeclaration<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StandardDeclaration<S>where
S: UnwindSafe,
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
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
key and return true if they are equal.