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