pub struct StmtFunction<'cst>(/* private fields */);Implementations§
Source§impl<'cst> StmtFunction<'cst>
impl<'cst> StmtFunction<'cst>
pub fn typed_name(&self) -> Option<TypedFunName<'cst>>
pub fn param_list(&self) -> Option<FunctionParamList<'cst>>
pub fn body(&self) -> Option<Either<Expr<'cst>, Body<'cst>>>
Trait Implementations§
Source§impl<'cst> Clone for StmtFunction<'cst>
impl<'cst> Clone for StmtFunction<'cst>
Source§fn clone(&self) -> StmtFunction<'cst>
fn clone(&self) -> StmtFunction<'cst>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'cst> Copy for StmtFunction<'cst>
Source§impl<'cst> Debug for StmtFunction<'cst>
impl<'cst> Debug for StmtFunction<'cst>
Source§impl<'cst> View<'cst> for StmtFunction<'cst>
impl<'cst> View<'cst> for StmtFunction<'cst>
Auto Trait Implementations§
impl<'cst> Freeze for StmtFunction<'cst>
impl<'cst> RefUnwindSafe for StmtFunction<'cst>
impl<'cst> Send for StmtFunction<'cst>
impl<'cst> Sync for StmtFunction<'cst>
impl<'cst> Unpin for StmtFunction<'cst>
impl<'cst> UnsafeUnpin for StmtFunction<'cst>
impl<'cst> UnwindSafe for StmtFunction<'cst>
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