Enum rustc_parse::parser::Capturing
source · pub enum Capturing {
No,
Yes,
}
Expand description
Controls how we capture tokens. Capturing can be expensive,
so we try to avoid performing capturing in cases where
we will never need an AttrTokenStream
.
Variants
No
We aren’t performing any capturing - this is the default mode.
Yes
We are capturing tokens
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Capturing
impl Send for Capturing
impl Sync for Capturing
impl Unpin for Capturing
impl UnwindSafe for Capturing
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
No
: 0 bytesYes
: 0 bytes