pub struct ReturnStatement {
pub keyword: _ReturnKeyword,
pub value: Option<Box<Expr>>,
}Fields§
§keyword: _ReturnKeyword§value: Option<Box<Expr>>Implementations§
Source§impl ReturnStatement
impl ReturnStatement
pub fn new(keyword: _ReturnKeyword, value: Option<Expr>) -> Self
Trait Implementations§
Source§impl Debug for ReturnStatement
impl Debug for ReturnStatement
Source§impl From<ReturnStatement> for Component
impl From<ReturnStatement> for Component
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> Self
Converts to this type from the input type.
Source§impl From<ReturnStatement> for Expr
impl From<ReturnStatement> for Expr
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> Self
Converts to this type from the input type.
Source§impl From<ReturnStatement> for SequenceElement
impl From<ReturnStatement> for SequenceElement
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> Self
Converts to this type from the input type.
Source§impl From<ReturnStatement> for SyntaxNode
impl From<ReturnStatement> for SyntaxNode
Source§fn from(value: ReturnStatement) -> Self
fn from(value: ReturnStatement) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for ReturnStatement
impl PrettyTree for ReturnStatement
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 ReturnStatementwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for ReturnStatementwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for ReturnStatement
impl ToCells for ReturnStatement
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 ReturnStatement
impl ToTokens for ReturnStatement
Auto Trait Implementations§
impl Freeze for ReturnStatement
impl RefUnwindSafe for ReturnStatement
impl Send for ReturnStatement
impl Sync for ReturnStatement
impl Unpin for ReturnStatement
impl UnsafeUnpin for ReturnStatement
impl UnwindSafe for ReturnStatement
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