pub enum MacroCallArgs {
Paren(Extent),
Curly(Extent),
Square(Extent),
}Variants§
Implementations§
Source§impl MacroCallArgs
impl MacroCallArgs
pub fn into_paren(self) -> Option<Extent>
pub fn into_curly(self) -> Option<Extent>
pub fn into_square(self) -> Option<Extent>
pub fn as_paren(&self) -> Option<&Extent>
pub fn as_curly(&self) -> Option<&Extent>
pub fn as_square(&self) -> Option<&Extent>
pub fn is_paren(&self) -> bool
pub fn is_curly(&self) -> bool
pub fn is_square(&self) -> bool
Trait Implementations§
Source§impl Debug for MacroCallArgs
impl Debug for MacroCallArgs
Source§impl<'a> Index<&'a MacroCallArgs> for str
impl<'a> Index<&'a MacroCallArgs> for str
Source§impl Index<MacroCallArgs> for str
impl Index<MacroCallArgs> for str
Auto Trait Implementations§
impl Freeze for MacroCallArgs
impl RefUnwindSafe for MacroCallArgs
impl Send for MacroCallArgs
impl Sync for MacroCallArgs
impl Unpin for MacroCallArgs
impl UnsafeUnpin for MacroCallArgs
impl UnwindSafe for MacroCallArgs
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