pub struct Capture {
pub mutable: bool,
pub name: Ident,
pub cpp: String,
}
Fields§
§mutable: bool
§name: Ident
§cpp: String
Trait Implementations§
Source§impl Parse for Capture
impl Parse for Capture
Source§fn parse(input: ParseStream<'_>) -> Result<Self>
fn parse(input: ParseStream<'_>) -> Result<Self>
Parse a single captured variable inside within a cpp!
macro.
Example: mut foo as "int"
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl Freeze for Capture
impl RefUnwindSafe for Capture
impl !Send for Capture
impl !Sync for Capture
impl Unpin for Capture
impl UnwindSafe for Capture
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