pub enum CrateType {
Dylib,
Rlib,
Staticlib,
Cdylib,
ProcMacro,
}Expand description
Represents the choices for the crate-type attribute
Variants§
Dylib
type = "dylib"
Rlib
type = "rlib"
Staticlib
type = "staticlib"
Cdylib
type = "cdylib"
ProcMacro
type = "proc-macro"
Trait Implementations§
impl Copy for CrateType
impl StructuralPartialEq for CrateType
Auto Trait Implementations§
impl Freeze for CrateType
impl RefUnwindSafe for CrateType
impl Send for CrateType
impl Sync for CrateType
impl Unpin for CrateType
impl UnsafeUnpin for CrateType
impl UnwindSafe for CrateType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DependencyExt for Twhere
T: Display,
impl<T> DependencyExt for Twhere
T: Display,
Source§fn version(&self, version: &str) -> Dependency
fn version(&self, version: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and version as the
semver version Read moreSource§fn repo(&self, repo: &str) -> Dependency
fn repo(&self, repo: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and repo as the git
repository Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more