pub struct All<T: FromMacro>(pub T);
Expand description
Extractor that matches everything in the stream and dipatches from_one
and from_many
accordingly
Example:
let Stringify(string) = quote!(Ferris the Rustacean.).into_iter().extract()?;
assert_eq!(string, "Ferris");
let All(Stringify(string)) = quote!(Ferris the Rustacean.).into_iter().extract()?;
assert_eq!(string, "Ferris the Rustacean .");
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for All<T>where
T: RefUnwindSafe,
impl<T> Send for All<T>where
T: Send,
impl<T> Sync for All<T>where
T: Sync,
impl<T> Unpin for All<T>where
T: Unpin,
impl<T> UnwindSafe for All<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