Struct svd_rs::field::FieldInfoBuilder
source · pub struct FieldInfoBuilder { /* private fields */ }
Expand description
Builder for FieldInfo
Implementations§
source§impl FieldInfoBuilder
impl FieldInfoBuilder
sourcepub fn description(self, value: Option<String>) -> Self
pub fn description(self, value: Option<String>) -> Self
Set the description of the field
sourcepub fn bit_offset(self, value: u32) -> Self
pub fn bit_offset(self, value: u32) -> Self
Set the bit offset of the field
sourcepub fn modified_write_values(self, value: Option<ModifiedWriteValues>) -> Self
pub fn modified_write_values(self, value: Option<ModifiedWriteValues>) -> Self
Set the modified write values of the field
sourcepub fn write_constraint(self, value: Option<WriteConstraint>) -> Self
pub fn write_constraint(self, value: Option<WriteConstraint>) -> Self
Set the write constraint of the field
sourcepub fn read_action(self, value: Option<ReadAction>) -> Self
pub fn read_action(self, value: Option<ReadAction>) -> Self
Set the read action of the register.
sourcepub fn enumerated_values(self, value: Vec<EnumeratedValues>) -> Self
pub fn enumerated_values(self, value: Vec<EnumeratedValues>) -> Self
Set the enumerated values of the field
sourcepub fn derived_from(self, value: Option<String>) -> Self
pub fn derived_from(self, value: Option<String>) -> Self
Set the derived_from attribute of the field
Trait Implementations§
source§impl Clone for FieldInfoBuilder
impl Clone for FieldInfoBuilder
source§fn clone(&self) -> FieldInfoBuilder
fn clone(&self) -> FieldInfoBuilder
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 FieldInfoBuilder
impl Debug for FieldInfoBuilder
source§impl Default for FieldInfoBuilder
impl Default for FieldInfoBuilder
source§fn default() -> FieldInfoBuilder
fn default() -> FieldInfoBuilder
Returns the “default value” for a type. Read more
source§impl From<FieldInfo> for FieldInfoBuilder
impl From<FieldInfo> for FieldInfoBuilder
source§impl PartialEq for FieldInfoBuilder
impl PartialEq for FieldInfoBuilder
source§fn eq(&self, other: &FieldInfoBuilder) -> bool
fn eq(&self, other: &FieldInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FieldInfoBuilder
impl StructuralPartialEq for FieldInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for FieldInfoBuilder
impl Send for FieldInfoBuilder
impl Sync for FieldInfoBuilder
impl Unpin for FieldInfoBuilder
impl UnwindSafe for FieldInfoBuilder
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