Struct seacan::Target [−][src]
#[non_exhaustive]pub struct Target { pub name: String, pub kind: Vec<String, Global>, pub crate_types: Vec<String, Global>, pub required_features: Vec<String, Global>, pub src_path: Utf8PathBuf, pub edition: String, pub doctest: bool, pub test: bool, }
Expand description
A single target (lib, bin, example, …) provided by a crate
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Expand description
Name as given in the Cargo.toml
or generated from the file name
kind: Vec<String, Global>
Expand description
Kind of target (“bin”, “example”, “test”, “bench”, “lib”)
crate_types: Vec<String, Global>
Expand description
Almost the same as kind
, except when an example is a library instead of an executable.
In that case crate_types
contains things like rlib
and dylib
while kind
is example
required_features: Vec<String, Global>
Expand description
This target is built only if these features are enabled.
It doesn’t apply to lib
targets.
src_path: Utf8PathBuf
Expand description
Path to the main source file of the target
edition: String
Expand description
Rust edition for this target
doctest: bool
Expand description
Whether or not this target has doc tests enabled, and the target is compatible with doc testing.
This is always true
if running with a version of Cargo older than 1.37.
test: bool
Expand description
Whether or not this target is tested by default by cargo test
.
This is always true
if running with a version of Cargo older than 1.47.
Trait Implementations
impl<'de> Deserialize<'de> for Target
[src]
impl<'de> Deserialize<'de> for Target
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Target, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Target, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Target
[src]
impl Serialize for Target
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Eq for Target
[src]
impl StructuralEq for Target
[src]
impl StructuralPartialEq for Target
[src]
Auto Trait Implementations
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,