Enum qapi_parser::spec::ConditionalFeature
source · [−]pub enum ConditionalFeature {
Feature(Feature),
Conditional {
name: Feature,
conditional: Option<Conditional>,
},
}
Variants
Feature(Feature)
Conditional
Trait Implementations
sourceimpl Clone for ConditionalFeature
impl Clone for ConditionalFeature
sourcefn clone(&self) -> ConditionalFeature
fn clone(&self) -> ConditionalFeature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConditionalFeature
impl Debug for ConditionalFeature
sourceimpl<'de> Deserialize<'de> for ConditionalFeature
impl<'de> Deserialize<'de> for ConditionalFeature
sourcefn 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
sourceimpl Hash for ConditionalFeature
impl Hash for ConditionalFeature
sourceimpl Ord for ConditionalFeature
impl Ord for ConditionalFeature
sourceimpl PartialEq<ConditionalFeature> for ConditionalFeature
impl PartialEq<ConditionalFeature> for ConditionalFeature
sourcefn eq(&self, other: &ConditionalFeature) -> bool
fn eq(&self, other: &ConditionalFeature) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConditionalFeature) -> bool
fn ne(&self, other: &ConditionalFeature) -> bool
This method tests for !=
.
sourceimpl PartialEq<Feature> for ConditionalFeature
impl PartialEq<Feature> for ConditionalFeature
sourceimpl PartialOrd<ConditionalFeature> for ConditionalFeature
impl PartialOrd<ConditionalFeature> for ConditionalFeature
sourcefn partial_cmp(&self, other: &ConditionalFeature) -> Option<Ordering>
fn partial_cmp(&self, other: &ConditionalFeature) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ConditionalFeature
impl StructuralEq for ConditionalFeature
impl StructuralPartialEq for ConditionalFeature
Auto Trait Implementations
impl RefUnwindSafe for ConditionalFeature
impl Send for ConditionalFeature
impl Sync for ConditionalFeature
impl Unpin for ConditionalFeature
impl UnwindSafe for ConditionalFeature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more