pub enum OneOrMany<TOne, TMany> {
One(TOne),
Many(TMany),
}
Expand description
Matches one of two FromMacro
implementors by count.
- Uses
One
if input is aTokenTree
- Uses
Many
if input is aTokenStream
Variants§
Trait Implementations§
source§impl<TOne, TMany> FromMacro for OneOrMany<TOne, TMany>
impl<TOne, TMany> FromMacro for OneOrMany<TOne, TMany>
Auto Trait Implementations§
impl<TOne, TMany> RefUnwindSafe for OneOrMany<TOne, TMany>where
TMany: RefUnwindSafe,
TOne: RefUnwindSafe,
impl<TOne, TMany> Send for OneOrMany<TOne, TMany>
impl<TOne, TMany> Sync for OneOrMany<TOne, TMany>
impl<TOne, TMany> Unpin for OneOrMany<TOne, TMany>
impl<TOne, TMany> UnwindSafe for OneOrMany<TOne, TMany>where
TMany: UnwindSafe,
TOne: 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