pub enum CargoFeature {
Default,
Named(CodegenIdent),
}Expand description
A Cargo feature for conditionally compiling generated code.
Feature names appear in the Cargo.toml [features] table,
and in #[cfg(feature = "...")] attributes. The special default feature
enables all other features.
Variants§
Default
Named(CodegenIdent)
Implementations§
Trait Implementations§
Source§impl Clone for CargoFeature
impl Clone for CargoFeature
Source§fn clone(&self) -> CargoFeature
fn clone(&self) -> CargoFeature
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 CargoFeature
impl Debug for CargoFeature
Source§impl Default for CargoFeature
impl Default for CargoFeature
Source§fn default() -> CargoFeature
fn default() -> CargoFeature
Returns the “default value” for a type. Read more
Source§impl Hash for CargoFeature
impl Hash for CargoFeature
Source§impl Ord for CargoFeature
impl Ord for CargoFeature
Source§fn cmp(&self, other: &CargoFeature) -> Ordering
fn cmp(&self, other: &CargoFeature) -> Ordering
1.21.0 · 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
Source§impl PartialEq for CargoFeature
impl PartialEq for CargoFeature
Source§impl PartialOrd for CargoFeature
impl PartialOrd for CargoFeature
impl Eq for CargoFeature
impl StructuralPartialEq for CargoFeature
Auto Trait Implementations§
impl Freeze for CargoFeature
impl RefUnwindSafe for CargoFeature
impl Send for CargoFeature
impl Sync for CargoFeature
impl Unpin for CargoFeature
impl UnwindSafe for CargoFeature
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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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