Struct svd_rs::dimelement::DimElementBuilder
source · [−]pub struct DimElementBuilder { /* private fields */ }
Expand description
Builder for DimElement
Implementations
sourceimpl 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
sourceimpl Clone for DimElementBuilder
impl Clone for DimElementBuilder
sourcefn clone(&self) -> DimElementBuilder
fn clone(&self) -> DimElementBuilder
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 DimElementBuilder
impl Debug for DimElementBuilder
sourceimpl Default for DimElementBuilder
impl Default for DimElementBuilder
sourcefn default() -> DimElementBuilder
fn default() -> DimElementBuilder
Returns the “default value” for a type. Read more
sourceimpl From<DimElement> for DimElementBuilder
impl From<DimElement> for DimElementBuilder
sourcefn from(d: DimElement) -> Self
fn from(d: DimElement) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DimElementBuilder> for DimElementBuilder
impl PartialEq<DimElementBuilder> for DimElementBuilder
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DimElementBuilder) -> bool
fn ne(&self, other: &DimElementBuilder) -> bool
This method tests for !=
.
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
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