Struct gluon_base::ast::Do
source · pub struct Do<'ast, Id> {
pub id: Option<SpannedPattern<'ast, Id>>,
pub typ: Option<AstType<'ast, Id>>,
pub bound: &'ast mut SpannedExpr<'ast, Id>,
pub body: &'ast mut SpannedExpr<'ast, Id>,
pub flat_map_id: Option<&'ast mut SpannedExpr<'ast, Id>>,
}
Fields§
§id: Option<SpannedPattern<'ast, Id>>
§typ: Option<AstType<'ast, Id>>
§bound: &'ast mut SpannedExpr<'ast, Id>
§body: &'ast mut SpannedExpr<'ast, Id>
§flat_map_id: Option<&'ast mut SpannedExpr<'ast, Id>>
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for Do<'ast, Id>
impl<'ast, Id> AstAlloc<'ast, Id> for Do<'ast, Id>
fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self
fn alloc_extend( iter: impl IntoIterator<Item = Self>, arena: &'ast Arena<'ast, Id> ) -> &'ast mut [Self]
source§impl<'ast, Id: PartialEq> PartialEq for Do<'ast, Id>
impl<'ast, Id: PartialEq> PartialEq for Do<'ast, Id>
impl<'ast, Id: Eq> Eq for Do<'ast, Id>
impl<'ast, Id> StructuralEq for Do<'ast, Id>
impl<'ast, Id> StructuralPartialEq for Do<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> RefUnwindSafe for Do<'ast, Id>where
Id: RefUnwindSafe,
impl<'ast, Id> Send for Do<'ast, Id>
impl<'ast, Id> Sync for Do<'ast, Id>
impl<'ast, Id> Unpin for Do<'ast, Id>where
Id: Unpin,
impl<'ast, Id> !UnwindSafe for Do<'ast, Id>
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