pub(crate) struct Types(pub(crate) Punctuated<Type, Comma>);Expand description
Representation of an attribute, containing a comma-separated list of types.
ⓘ
#[<attribute>(<types>)]Tuple Fields§
§0: Punctuated<Type, Comma>Trait Implementations§
Source§impl ParseMultiple for Types
impl ParseMultiple for Types
Source§fn merge_attrs(
prev: Spanning<Self>,
new: Spanning<Self>,
_: &Ident,
) -> Result<Spanning<Self>>
fn merge_attrs( prev: Spanning<Self>, new: Spanning<Self>, _: &Ident, ) -> Result<Spanning<Self>>
Merges multiple values of this attribute into a single one. Read more
Source§fn merge_opt_attrs(
prev: Option<Spanning<Self>>,
new: Option<Spanning<Self>>,
name: &Ident,
) -> Result<Option<Spanning<Self>>>
fn merge_opt_attrs( prev: Option<Spanning<Self>>, new: Option<Spanning<Self>>, name: &Ident, ) -> Result<Option<Spanning<Self>>>
Auto Trait Implementations§
impl Freeze for Types
impl RefUnwindSafe for Types
impl !Send for Types
impl !Sync for Types
impl Unpin for Types
impl UnwindSafe for Types
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