pub enum ConditionalFeature {
Feature(Feature),
Conditional {
name: Feature,
conditional: Option<Conditional>,
},
}
Variants§
Trait Implementations§
Source§impl Clone for ConditionalFeature
impl Clone for ConditionalFeature
Source§fn clone(&self) -> ConditionalFeature
fn clone(&self) -> ConditionalFeature
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 ConditionalFeature
impl Debug for ConditionalFeature
Source§impl<'de> Deserialize<'de> for ConditionalFeature
impl<'de> Deserialize<'de> for ConditionalFeature
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
Source§impl Hash for ConditionalFeature
impl Hash for ConditionalFeature
Source§impl Ord for ConditionalFeature
impl Ord for ConditionalFeature
Source§fn cmp(&self, other: &ConditionalFeature) -> Ordering
fn cmp(&self, other: &ConditionalFeature) -> 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<Feature> for ConditionalFeature
impl PartialEq<Feature> for ConditionalFeature
Source§impl PartialEq for ConditionalFeature
impl PartialEq for ConditionalFeature
Source§impl PartialOrd for ConditionalFeature
impl PartialOrd for ConditionalFeature
impl Eq for ConditionalFeature
impl StructuralPartialEq for ConditionalFeature
Auto Trait Implementations§
impl Freeze for ConditionalFeature
impl RefUnwindSafe for ConditionalFeature
impl Send for ConditionalFeature
impl Sync for ConditionalFeature
impl Unpin for ConditionalFeature
impl UnwindSafe for ConditionalFeature
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