pub(crate) struct AttrProperty {
pub tag: String,
pub args: Vec<Expr>,
pub kind: Option<String>,
}Expand description
The raw syntactic form of a property call tag(arg0, arg1, ...) parsed
from an attribute — the unevaluated stage, before semantic resolution
into a Property.
Fields§
§tag: StringThe property name extracted from the call target.
args: Vec<Expr>The positional arguments passed to the property call.
kind: Option<String>Optional kind metadata associated with this property.
Trait Implementations§
Source§impl Clone for AttrProperty
impl Clone for AttrProperty
Source§impl Debug for AttrProperty
impl Debug for AttrProperty
Source§impl Parse for AttrProperty
impl Parse for AttrProperty
Source§fn parse(input: ParseStream<'_>) -> SynResult<Self>
fn parse(input: ParseStream<'_>) -> SynResult<Self>
Parse a single property item from a requires attribute argument list.
Supported forms:
nonzero(x)nonzero(x), kind = "ptr"
Auto Trait Implementations§
impl !DynSend for AttrProperty
impl !DynSync for AttrProperty
impl !Send for AttrProperty
impl !Sync for AttrProperty
impl Freeze for AttrProperty
impl RefUnwindSafe for AttrProperty
impl Unpin for AttrProperty
impl UnsafeUnpin for AttrProperty
impl UnwindSafe for AttrProperty
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more