Enum guppy::graph::cargo::InitialsPlatform
source · pub enum InitialsPlatform {
Host,
Standard,
ProcMacrosOnTarget,
}
Expand description
For a given Cargo build simulation, what platform to assume the initials are being built on.
Variants§
Host
Assume that the initials are being built on the host platform.
This is most useful for “continuing” simulations, where it is already known that some packages are being built on the host and one wishes to find their dependencies.
Standard
Assume a standard build.
In this mode, all initials other than proc-macros are built on the target platform. Proc- macros, being compiler plugins, are built on the host.
This is the default for InitialsPlatform
.
ProcMacrosOnTarget
Perform a standard build, and also build proc-macros on the target.
Proc-macro crates may include tests, which are run on the target platform. This option is most useful for such situations.
Trait Implementations§
source§impl Arbitrary for InitialsPlatform
impl Arbitrary for InitialsPlatform
§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> InitialsPlatform>), (u32, Arc<fn() -> InitialsPlatform>), (u32, Arc<fn() -> InitialsPlatform>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> InitialsPlatform>), (u32, Arc<fn() -> InitialsPlatform>), (u32, Arc<fn() -> InitialsPlatform>))>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for InitialsPlatform
impl Clone for InitialsPlatform
source§fn clone(&self) -> InitialsPlatform
fn clone(&self) -> InitialsPlatform
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InitialsPlatform
impl Debug for InitialsPlatform
source§impl Default for InitialsPlatform
impl Default for InitialsPlatform
The default for InitialsPlatform
: the Standard
option.
source§impl<'de> Deserialize<'de> for InitialsPlatform
impl<'de> Deserialize<'de> for InitialsPlatform
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>,
source§impl From<InitialsPlatformSummary> for InitialsPlatform
Available on crate feature summaries
only.
impl From<InitialsPlatformSummary> for InitialsPlatform
summaries
only.source§fn from(s: InitialsPlatformSummary) -> Self
fn from(s: InitialsPlatformSummary) -> Self
source§impl Hash for InitialsPlatform
impl Hash for InitialsPlatform
source§impl PartialEq<InitialsPlatform> for InitialsPlatform
impl PartialEq<InitialsPlatform> for InitialsPlatform
source§fn eq(&self, other: &InitialsPlatform) -> bool
fn eq(&self, other: &InitialsPlatform) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InitialsPlatform
impl Serialize for InitialsPlatform
impl Copy for InitialsPlatform
impl Eq for InitialsPlatform
impl StructuralEq for InitialsPlatform
impl StructuralPartialEq for InitialsPlatform
Auto Trait Implementations§
impl RefUnwindSafe for InitialsPlatform
impl Send for InitialsPlatform
impl Sync for InitialsPlatform
impl Unpin for InitialsPlatform
impl UnwindSafe for InitialsPlatform
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.