Enum rustdoc_json::PackageTarget
source · #[non_exhaustive]pub enum PackageTarget {
Lib,
Bin(String),
Example(String),
Test(String),
Bench(String),
}
Expand description
The part of 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 copy 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 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