pub enum RustCrateType {
Lib,
Rlib,
Dylib,
Cdylib,
Staticlib,
ProcMacro,
}Expand description
One element of rustc’s --crate-type list.
Serializes kebab-case (rlib, proc-macro, …). Ord is defined over the
wire string rather than declaration order so producers sorting
crate_types agree with validators comparing serialized strings.
Variants§
Lib
lib — a Rust library in whichever form rustc picks.
Rlib
rlib — a Rust static library.
Dylib
dylib — a Rust dynamic library.
Cdylib
cdylib — a C-ABI dynamic library.
Staticlib
staticlib — a C-ABI static library.
ProcMacro
proc-macro — a procedural macro crate.
Implementations§
Trait Implementations§
Source§impl Clone for RustCrateType
impl Clone for RustCrateType
Source§impl ComposeSchema for RustCrateType
impl ComposeSchema for RustCrateType
Source§impl Debug for RustCrateType
impl Debug for RustCrateType
Source§impl<'de> Deserialize<'de> for RustCrateType
impl<'de> Deserialize<'de> for RustCrateType
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RustCrateType
Source§impl Hash for RustCrateType
impl Hash for RustCrateType
Source§impl Ord for RustCrateType
impl Ord for RustCrateType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RustCrateType
impl PartialEq for RustCrateType
Source§impl PartialOrd for RustCrateType
impl PartialOrd for RustCrateType
Source§impl Serialize for RustCrateType
impl Serialize for RustCrateType
impl StructuralPartialEq for RustCrateType
Auto Trait Implementations§
impl Freeze for RustCrateType
impl RefUnwindSafe for RustCrateType
impl Send for RustCrateType
impl Sync for RustCrateType
impl Unpin for RustCrateType
impl UnsafeUnpin for RustCrateType
impl UnwindSafe for RustCrateType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.