pub struct ExprNew {
pub new_token: _New,
pub class: Box<Expr>,
pub parent_class: Option<OfClass>,
pub instance: Option<FromInstance>,
}Expand description
Struct generated by strutuct! for ExprNew.
Fields§
§new_token: _NewField ExprNew::new_token generated by strutuct!.
class: Box<Expr>Field ExprNew::class generated by strutuct!.
parent_class: Option<OfClass>Field ExprNew::parent_class generated by strutuct!.
instance: Option<FromInstance>Field ExprNew::instance generated by strutuct!.
Implementations§
Trait Implementations§
Source§impl From<ExprNew> for PackedContent
impl From<ExprNew> for PackedContent
Source§impl Lex for ExprNew
impl Lex for ExprNew
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for ExprNewwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ExprNewwhere
N: ExternalCstNode,
Source§impl PrettyTree for ExprNew
impl PrettyTree for ExprNew
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for ExprNew
impl RefUnwindSafe for ExprNew
impl Send for ExprNew
impl Sync for ExprNew
impl Unpin for ExprNew
impl UnsafeUnpin for ExprNew
impl UnwindSafe for ExprNew
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