pub struct PunctOf<const PUNCT: char>;
Expand description
Unit struct validator of a punctuation mark
Example
let PunctOf::<'%'> = quote!(%).into_iter().extract().unwrap();
Trait Implementations§
source§impl<const PUNCT: char> FromMacro for PunctOf<PUNCT>
impl<const PUNCT: char> FromMacro for PunctOf<PUNCT>
Auto Trait Implementations§
impl<const PUNCT: char> RefUnwindSafe for PunctOf<PUNCT>
impl<const PUNCT: char> Send for PunctOf<PUNCT>
impl<const PUNCT: char> Sync for PunctOf<PUNCT>
impl<const PUNCT: char> Unpin for PunctOf<PUNCT>
impl<const PUNCT: char> UnwindSafe for PunctOf<PUNCT>
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