pub struct RegisterOptions {
pub getter: Option<RegisterGetterClosure>,
pub setter: Option<RegisterSetterClosure>,
pub readonly: bool,
pub address: Option<String>,
pub allocate: Option<String>,
}Expand description
configuration for creating a new Register
Fields§
§getter: Option<RegisterGetterClosure>closure to obtain the current register value
setter: Option<RegisterSetterClosure>closure to set the current register value
readonly: boolis this register meant as read-only? (default: false)
address: Option<String>an optional name for the register (default: the cs)
allocate: Option<String>an optional allocation for the register (default: None)
Trait Implementations§
Source§impl Default for RegisterOptions
impl Default for RegisterOptions
Source§fn default() -> RegisterOptions
fn default() -> RegisterOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RegisterOptions
impl !Send for RegisterOptions
impl !Sync for RegisterOptions
impl !UnwindSafe for RegisterOptions
impl Freeze for RegisterOptions
impl Unpin for RegisterOptions
impl UnsafeUnpin for RegisterOptions
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