pub enum SpecRef {
Path(Path),
Lean(String),
}Expand description
A spec named by an attribute key.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for SpecRef
impl !Sync for SpecRef
impl Forget for SpecRef
impl Freeze for SpecRefwhere
NonZero<u32>: Freeze,
PhantomData<Rc<()>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(PathSegment, PathSep)>: Freeze,
*const PathSegment is !null: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<u8>: Freeze,
impl Move for SpecRef
impl RefUnwindSafe for SpecRefwhere
NonZero<u32>: RefUnwindSafe,
ProcMacroAutoTraits: RefUnwindSafe,
RcVec<TokenTree>: RefUnwindSafe,
impl Unpin for SpecRefwhere
NonZero<u32>: Unpin,
Rc<()>: Unpin,
*const u8 is !null: Unpin,
Box<str>: Unpin,
Rc<Vec<TokenTree>>: Unpin,
Box<Expr>: Unpin,
Box<Pat>: Unpin,
Box<LitRepr>: Unpin,
Box<LitIntRepr>: Unpin,
Box<LitFloatRepr>: Unpin,
Box<Type>: Unpin,
Box<FieldPat>: Unpin,
Box<Path>: Unpin,
Box<Lifetime>: Unpin,
Box<CapturedParam>: Unpin,
Box<TypeParamBound>: Unpin,
Box<GenericParam>: Unpin,
Box<WherePredicate>: Unpin,
Box<Field>: Unpin,
Box<Variant>: Unpin,
Box<FnArg>: Unpin,
Box<Block>: Unpin,
Box<UseTree>: Unpin,
Box<FieldValue>: Unpin,
Box<NamedArg>: Unpin,
Box<GenericArgument>: Unpin,
Box<PathSegment>: Unpin,
impl UnsafeUnpin for SpecRefwhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(PathSegment, PathSep)>: UnsafeUnpin,
*const PathSegment is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SpecRefwhere
NonZero<u32>: UnwindSafe,
ProcMacroAutoTraits: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<str>: UnwindSafe,
Rc<Vec<TokenTree>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Pat>: UnwindSafe,
BoxRaw<LitRepr>: UnwindSafe,
BoxRaw<LitIntRepr>: UnwindSafe,
BoxRaw<LitFloatRepr>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
BoxRaw<FieldPat>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<Lifetime>: UnwindSafe,
BoxRaw<CapturedParam>: UnwindSafe,
BoxRaw<TypeParamBound>: UnwindSafe,
BoxRaw<GenericParam>: UnwindSafe,
BoxRaw<WherePredicate>: UnwindSafe,
BoxRaw<Field>: UnwindSafe,
BoxRaw<Variant>: UnwindSafe,
BoxRaw<FnArg>: UnwindSafe,
BoxRaw<Block>: UnwindSafe,
BoxRaw<UseTree>: UnwindSafe,
BoxRaw<FieldValue>: UnwindSafe,
BoxRaw<NamedArg>: UnwindSafe,
BoxRaw<GenericArgument>: UnwindSafe,
BoxRaw<PathSegment>: UnwindSafe,
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