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