pub struct NewStatement {
pub keyword: _NewKeyword,
pub class: Box<Expr>,
pub of_keyword: Option<_OfKeyword>,
pub parent: Option<Box<Expr>>,
pub from_keyword: Option<_FromKeyword>,
pub instance: Option<Box<Expr>>,
}Fields§
§keyword: _NewKeyword§class: Box<Expr>§of_keyword: Option<_OfKeyword>§parent: Option<Box<Expr>>§from_keyword: Option<_FromKeyword>§instance: Option<Box<Expr>>Implementations§
Source§impl NewStatement
impl NewStatement
pub fn new( keyword: _NewKeyword, class: Expr, of_keyword: Option<_OfKeyword>, parent: Option<Expr>, from_keyword: Option<_FromKeyword>, instance: Option<Expr>, ) -> Self
Trait Implementations§
Source§impl Debug for NewStatement
impl Debug for NewStatement
Source§impl From<NewStatement> for Component
impl From<NewStatement> for Component
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for Expr
impl From<NewStatement> for Expr
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for SequenceElement
impl From<NewStatement> for SequenceElement
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl From<NewStatement> for SyntaxNode
impl From<NewStatement> for SyntaxNode
Source§fn from(value: NewStatement) -> Self
fn from(value: NewStatement) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for NewStatement
impl PrettyTree for NewStatement
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for NewStatementwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for NewStatementwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for NewStatement
impl ToCells for NewStatement
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for NewStatement
impl ToTokens for NewStatement
Auto Trait Implementations§
impl Freeze for NewStatement
impl RefUnwindSafe for NewStatement
impl Send for NewStatement
impl Sync for NewStatement
impl Unpin for NewStatement
impl UnsafeUnpin for NewStatement
impl UnwindSafe for NewStatement
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