pub struct NestedMetaItem<T> {
pub name: &'static str,
pub value_required: bool,
pub found: bool,
pub required: bool,
pub value: Option<T>,
}
Fields§
§name: &'static str
§value_required: bool
§found: bool
§required: bool
§value: Option<T>
Implementations§
source§impl<T: Parse> NestedMetaItem<T>
impl<T: Parse> NestedMetaItem<T>
pub const fn new(name: &'static str) -> Self
pub fn required(self) -> Self
pub const fn value_required(self) -> Self
pub const fn value_optional(self) -> Self
fn parse_nested_forced(&mut self, meta: &ParseNestedMeta<'_>) -> Result<()>
Trait Implementations§
source§impl<T: Default> Default for NestedMetaItem<T>
impl<T: Default> Default for NestedMetaItem<T>
source§fn default() -> NestedMetaItem<T>
fn default() -> NestedMetaItem<T>
Returns the “default value” for a type. Read more
source§impl<T: Parse> ParseNestedMetaItem for NestedMetaItem<T>
impl<T: Parse> ParseNestedMetaItem for NestedMetaItem<T>
Auto Trait Implementations§
impl<T> Freeze for NestedMetaItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for NestedMetaItem<T>where
T: RefUnwindSafe,
impl<T> Send for NestedMetaItem<T>where
T: Send,
impl<T> Sync for NestedMetaItem<T>where
T: Sync,
impl<T> Unpin for NestedMetaItem<T>where
T: Unpin,
impl<T> UnwindSafe for NestedMetaItem<T>where
T: UnwindSafe,
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