#[non_exhaustive]pub struct Interrupt {
pub name: String,
pub description: Option<String>,
pub value: u32,
}
Expand description
Describes an interrupt in the device
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The string represents the interrupt name
description: Option<String>
The string describes the interrupt
value: u32
Represents the enumeration index value associated to the interrupt
Implementations§
source§impl Interrupt
impl Interrupt
sourcepub fn builder() -> InterruptBuilder
pub fn builder() -> InterruptBuilder
Make a builder for Interrupt
sourcepub fn modify_from(
&mut self,
builder: InterruptBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
pub fn modify_from( &mut self, builder: InterruptBuilder, lvl: ValidateLevel ) -> Result<(), SvdError>
Trait Implementations§
source§impl Description for Interrupt
impl Description for Interrupt
source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Get description
source§impl From<Interrupt> for InterruptBuilder
impl From<Interrupt> for InterruptBuilder
source§impl PartialEq for Interrupt
impl PartialEq for Interrupt
impl Eq for Interrupt
impl StructuralEq for Interrupt
impl StructuralPartialEq for Interrupt
Auto Trait Implementations§
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnwindSafe for Interrupt
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