// Copyright 2025 Jonas Kruckenberg // // Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. //! Generic trap/exception handling types #![no_std] /// Generic trap type that can represent either an interrupt or an exception /// The specific Interrupt and Exception types are defined by each architecture #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub enum Trap { Interrupt(I), Exception(E), }