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