Struct macroex::CommaExtractor
source · pub struct CommaExtractor<T>(pub T);
Expand description
Extractor that matches until a comma is found.
This is equivalent to [Punctuated<T, ','>
].
Since type aliases cannot be extractors as of now, we define a new struct for ergonomics.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Debug> Debug for CommaExtractor<T>
impl<T: Debug> Debug for CommaExtractor<T>
source§impl<T: Default> Default for CommaExtractor<T>
impl<T: Default> Default for CommaExtractor<T>
source§fn default() -> CommaExtractor<T>
fn default() -> CommaExtractor<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for CommaExtractor<T>where
T: RefUnwindSafe,
impl<T> Send for CommaExtractor<T>where
T: Send,
impl<T> Sync for CommaExtractor<T>where
T: Sync,
impl<T> Unpin for CommaExtractor<T>where
T: Unpin,
impl<T> UnwindSafe for CommaExtractor<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