pub struct HirReturnStmt {
pub span: Span,
pub value: Option<HirExpr>,
}Expand description
One lowered return.
Fields§
§span: SpanSource span.
value: Option<HirExpr>Optional return value.
Trait Implementations§
Source§impl Clone for HirReturnStmt
impl Clone for HirReturnStmt
Source§fn clone(&self) -> HirReturnStmt
fn clone(&self) -> HirReturnStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HirReturnStmt
impl Debug for HirReturnStmt
Source§impl<'de> Deserialize<'de> for HirReturnStmt
impl<'de> Deserialize<'de> for HirReturnStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HirReturnStmt
impl PartialEq for HirReturnStmt
Source§impl Serialize for HirReturnStmt
impl Serialize for HirReturnStmt
impl StructuralPartialEq for HirReturnStmt
Auto Trait Implementations§
impl Freeze for HirReturnStmt
impl RefUnwindSafe for HirReturnStmt
impl Send for HirReturnStmt
impl Sync for HirReturnStmt
impl Unpin for HirReturnStmt
impl UnsafeUnpin for HirReturnStmt
impl UnwindSafe for HirReturnStmt
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