Enum svd_rs::readaction::ReadAction
source · pub enum ReadAction {
Clear,
Set,
Modify,
ModifyExternal,
}
Expand description
Specifies the side effect following a read operation
Variants§
Clear
The register/field is cleared (set to zero) following a read operation
Set
The register/field is set (set to ones) following a read operation
Modify
The register/field is modified in some way after a read operation
ModifyExternal
One or more dependent resources other than the current register/field are immediately affected by a read operation
Implementations§
source§impl ReadAction
impl ReadAction
sourcepub fn parse_str(s: &str) -> Option<Self>
pub fn parse_str(s: &str) -> Option<Self>
Parse a string into an ReadAction
value, returning Option::None
if the string is not valid.
sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Convert this ReadAction
into a static string.
Trait Implementations§
source§impl Clone for ReadAction
impl Clone for ReadAction
source§fn clone(&self) -> ReadAction
fn clone(&self) -> ReadAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReadAction
impl Debug for ReadAction
source§impl Default for ReadAction
impl Default for ReadAction
source§impl PartialEq for ReadAction
impl PartialEq for ReadAction
source§fn eq(&self, other: &ReadAction) -> bool
fn eq(&self, other: &ReadAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ReadAction
impl Eq for ReadAction
impl StructuralPartialEq for ReadAction
Auto Trait Implementations§
impl RefUnwindSafe for ReadAction
impl Send for ReadAction
impl Sync for ReadAction
impl Unpin for ReadAction
impl UnwindSafe for ReadAction
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