pub struct FeatureContract {
pub name: String,
pub component: String,
pub doc: String,
pub features: Vec<FeatureDef>,
pub source: SourceLocation,
}Expand description
A #[bern::features] contract: what users can do within the scope of
one component, and how each feature is reached in each layout size.
Fields§
§name: StringThe features enum, for example MediaFeature.
component: StringThe component whose subtree is the contract’s scope.
doc: String§features: Vec<FeatureDef>§source: SourceLocationTrait Implementations§
Source§impl Clone for FeatureContract
impl Clone for FeatureContract
Source§impl Debug for FeatureContract
impl Debug for FeatureContract
Source§impl<'de> Deserialize<'de> for FeatureContract
impl<'de> Deserialize<'de> for FeatureContract
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 PartialEq for FeatureContract
impl PartialEq for FeatureContract
Source§impl Serialize for FeatureContract
impl Serialize for FeatureContract
impl StructuralPartialEq for FeatureContract
Auto Trait Implementations§
impl Freeze for FeatureContract
impl RefUnwindSafe for FeatureContract
impl Send for FeatureContract
impl Sync for FeatureContract
impl Unpin for FeatureContract
impl UnsafeUnpin for FeatureContract
impl UnwindSafe for FeatureContract
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