pub struct FeatureItem {
pub name: Ident,
pub doc: String,
pub commands: Vec<CommandRef>,
pub layouts: Vec<Ident>,
pub guaranteed: Option<LitStr>,
pub exemptions: Vec<(Ident, LitStr)>,
pub span: Span,
}Expand description
One variant of a #[bern::features] enum.
Fields§
§name: Ident§doc: String§commands: Vec<CommandRef>§layouts: Vec<Ident>#[layouts(…)]; empty for every size.
guaranteed: Option<LitStr>§exemptions: Vec<(Ident, LitStr)>#[exempt(platform, "reason")].
span: SpanTrait Implementations§
Source§impl Clone for FeatureItem
impl Clone for FeatureItem
Auto Trait Implementations§
impl !Send for FeatureItem
impl !Sync for FeatureItem
impl Freeze for FeatureItem
impl RefUnwindSafe for FeatureItem
impl Unpin for FeatureItem
impl UnsafeUnpin for FeatureItem
impl UnwindSafe for FeatureItem
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