Struct svd_rs::dimelement::DimElementBuilder
source · pub struct DimElementBuilder { /* private fields */ }
Expand description
Builder for DimElement
Implementations§
source§impl DimElementBuilder
impl DimElementBuilder
sourcepub fn dim_increment(self, value: u32) -> Self
pub fn dim_increment(self, value: u32) -> Self
Set the dim increment of the elements
sourcepub fn dim_array_index(self, value: Option<DimArrayIndex>) -> Self
pub fn dim_array_index(self, value: Option<DimArrayIndex>) -> Self
Set the dim_array_index of the elements
sourcepub fn build(self, lvl: ValidateLevel) -> Result<DimElement, SvdError>
pub fn build(self, lvl: ValidateLevel) -> Result<DimElement, SvdError>
Validate and build a DimElement
.
Trait Implementations§
source§impl Clone for DimElementBuilder
impl Clone for DimElementBuilder
source§fn clone(&self) -> DimElementBuilder
fn clone(&self) -> DimElementBuilder
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 DimElementBuilder
impl Debug for DimElementBuilder
source§impl Default for DimElementBuilder
impl Default for DimElementBuilder
source§fn default() -> DimElementBuilder
fn default() -> DimElementBuilder
Returns the “default value” for a type. Read more
source§impl From<DimElement> for DimElementBuilder
impl From<DimElement> for DimElementBuilder
source§fn from(d: DimElement) -> Self
fn from(d: DimElement) -> Self
Converts to this type from the input type.
source§impl PartialEq for DimElementBuilder
impl PartialEq for DimElementBuilder
source§fn eq(&self, other: &DimElementBuilder) -> bool
fn eq(&self, other: &DimElementBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DimElementBuilder
impl StructuralPartialEq for DimElementBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DimElementBuilder
impl Send for DimElementBuilder
impl Sync for DimElementBuilder
impl Unpin for DimElementBuilder
impl UnwindSafe for DimElementBuilder
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