pub struct With {
pub pound: Pound,
pub with: with,
pub context: context,
pub ty: Option<(Colon, Box<Type>)>,
pub eq: Eq,
pub expr: Box<Expr>,
pub brace: Brace,
pub nodes: Vec<Node>,
}Fields§
§pound: Pound§with: with§context: context§ty: Option<(Colon, Box<Type>)>§eq: Eq§expr: Box<Expr>§brace: Brace§nodes: Vec<Node>Trait Implementations§
Source§impl ToTokens for With
impl ToTokens for With
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,
Auto Trait Implementations§
impl Freeze for With
impl RefUnwindSafe for With
impl !Send for With
impl !Sync for With
impl Unpin for With
impl UnwindSafe for With
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.