Enum chalk_parse::ast::Item
source · pub enum Item {
AdtDefn(AdtDefn),
FnDefn(FnDefn),
ClosureDefn(ClosureDefn),
TraitDefn(TraitDefn),
OpaqueTyDefn(OpaqueTyDefn),
CoroutineDefn(CoroutineDefn),
Impl(Impl),
Clause(Clause),
Foreign(ForeignDefn),
}
Variants§
AdtDefn(AdtDefn)
FnDefn(FnDefn)
ClosureDefn(ClosureDefn)
TraitDefn(TraitDefn)
OpaqueTyDefn(OpaqueTyDefn)
CoroutineDefn(CoroutineDefn)
Impl(Impl)
Clause(Clause)
Foreign(ForeignDefn)
Trait Implementations§
source§impl PartialEq for Item
impl PartialEq for Item
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)