#[non_exhaustive]pub enum PackageTarget {
    Lib,
    Bin(String),
    Example(String),
    Test(String),
    Bench(String),
}Expand description
The part of the package to document
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lib
Document the package as a library, i.e. pass --lib
Bin(String)
Document the given binary, i.e. pass --bin <name>
Example(String)
Document the given binary, i.e. pass --example <name>
Test(String)
Document the given binary, i.e. pass --test <name>
Bench(String)
Document the given binary, i.e. pass --bench <name>
Trait Implementations§
Source§impl Clone for PackageTarget
 
impl Clone for PackageTarget
Source§fn clone(&self) -> PackageTarget
 
fn clone(&self) -> PackageTarget
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 moreSource§impl Debug for PackageTarget
 
impl Debug for PackageTarget
Source§impl Default for PackageTarget
 
impl Default for PackageTarget
Source§fn default() -> PackageTarget
 
fn default() -> PackageTarget
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PackageTarget
impl RefUnwindSafe for PackageTarget
impl Send for PackageTarget
impl Sync for PackageTarget
impl Unpin for PackageTarget
impl UnwindSafe for PackageTarget
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