pub enum DeclDef<D> {
Imported(Import),
Present(D),
}
Expand description
Declarations (GlobalVarDecl
, FuncDecl
) can contain a full definition,
or only be an import of a definition (e.g. from another module).
Variants§
Trait Implementations§
source§impl<D: InnerInPlaceTransform> InnerInPlaceTransform for DeclDef<D>
impl<D: InnerInPlaceTransform> InnerInPlaceTransform for DeclDef<D>
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl<D: InnerVisit> InnerVisit for DeclDef<D>
impl<D: InnerVisit> InnerVisit for DeclDef<D>
fn inner_visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)
Auto Trait Implementations§
impl<D> RefUnwindSafe for DeclDef<D>where D: RefUnwindSafe,
impl<D> Send for DeclDef<D>where D: Send,
impl<D> Sync for DeclDef<D>where D: Sync,
impl<D> Unpin for DeclDef<D>where D: Unpin,
impl<D> UnwindSafe for DeclDef<D>where D: UnwindSafe,
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