pub enum AttrKey {
Ident(Ident),
Where(KWhere),
}Expand description
The key of a facet attribute - either an identifier or the where keyword.
Variants§
Ident(Ident)
A regular identifier (e.g., “sensitive”, “rename”, “opaque”)
Where(KWhere)
The where keyword for custom bounds
Implementations§
Trait Implementations§
Source§impl ToTokens for AttrKey
impl ToTokens for AttrKey
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl ToTokens for AttrKey
impl ToTokens for AttrKey
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn into_token_iter(self) -> TokenIter ⓘwhere
Self: Sized,
fn into_token_iter(self) -> TokenIter ⓘwhere
Self: Sized,
Convert
self into a TokenIter object.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert
&self into a TokenStream object.Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Convert
self into a TokenStream object.Auto Trait Implementations§
impl Freeze for AttrKey
impl RefUnwindSafe for AttrKey
impl !Send for AttrKey
impl !Sync for AttrKey
impl Unpin for AttrKey
impl UnwindSafe for AttrKey
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