Struct svd_rs::field::FieldInfoBuilder
source · [−]pub struct FieldInfoBuilder { /* private fields */ }
Expand description
Builder for FieldInfo
Implementations
sourceimpl 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
sourceimpl Clone for FieldInfoBuilder
impl Clone for FieldInfoBuilder
sourcefn clone(&self) -> FieldInfoBuilder
fn clone(&self) -> FieldInfoBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FieldInfoBuilder
impl Debug for FieldInfoBuilder
sourceimpl Default for FieldInfoBuilder
impl Default for FieldInfoBuilder
sourcefn default() -> FieldInfoBuilder
fn default() -> FieldInfoBuilder
Returns the “default value” for a type. Read more
sourceimpl From<FieldInfo> for FieldInfoBuilder
impl From<FieldInfo> for FieldInfoBuilder
sourceimpl PartialEq<FieldInfoBuilder> for FieldInfoBuilder
impl PartialEq<FieldInfoBuilder> for FieldInfoBuilder
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &FieldInfoBuilder) -> bool
fn ne(&self, other: &FieldInfoBuilder) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more