pub(super) enum LhsExpr {
NotYetParsed,
AttributesParsed(AttrWrapper),
AlreadyParsed(P<Expr>),
}
Variants
NotYetParsed
AttributesParsed(AttrWrapper)
AlreadyParsed(P<Expr>)
Trait Implementations
sourceimpl From<Option<AttrWrapper>> for LhsExpr
impl From<Option<AttrWrapper>> for LhsExpr
sourcefn from(o: Option<AttrWrapper>) -> Self
fn from(o: Option<AttrWrapper>) -> Self
Converts Some(attrs)
into LhsExpr::AttributesParsed(attrs)
and None
into LhsExpr::NotYetParsed
.
This conversion does not allocate.
Auto Trait Implementations
impl !RefUnwindSafe for LhsExpr
impl !Send for LhsExpr
impl !Sync for LhsExpr
impl Unpin for LhsExpr
impl !UnwindSafe for LhsExpr
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: 24 bytes
Size for each variant:
NotYetParsed
: 0 bytesAttributesParsed
: 16 bytesAlreadyParsed
: 8 bytes