pub struct ClusterInfoBuilder { /* private fields */ }
Expand description
Builder for ClusterInfo
Implementations§
Source§impl ClusterInfoBuilder
impl ClusterInfoBuilder
Sourcepub fn description(self, value: Option<String>) -> Self
pub fn description(self, value: Option<String>) -> Self
Set the description of the cluster.
Sourcepub fn alternate_cluster(self, value: Option<String>) -> Self
pub fn alternate_cluster(self, value: Option<String>) -> Self
Set the alternate cluster.
Sourcepub fn header_struct_name(self, value: Option<String>) -> Self
pub fn header_struct_name(self, value: Option<String>) -> Self
Set the struct type name of the cluster. If not specified, the name of the cluster should be used.
Sourcepub fn address_offset(self, value: u32) -> Self
pub fn address_offset(self, value: u32) -> Self
Set the address_offset of the cluster, relative to the baseAddress
of the peripheral.
Sourcepub fn default_register_properties(self, value: RegisterProperties) -> Self
pub fn default_register_properties(self, value: RegisterProperties) -> Self
Set the default_register_properties of the cluster.
Sourcepub fn children(self, value: Vec<RegisterCluster>) -> Self
pub fn children(self, value: Vec<RegisterCluster>) -> Self
Set the children of the cluster.
Sourcepub fn derived_from(self, value: Option<String>) -> Self
pub fn derived_from(self, value: Option<String>) -> Self
Set the derived_from of the cluster.
Sourcepub fn build(self, lvl: ValidateLevel) -> Result<ClusterInfo, SvdError>
pub fn build(self, lvl: ValidateLevel) -> Result<ClusterInfo, SvdError>
Validate and build a ClusterInfo
.
Trait Implementations§
Source§impl Clone for ClusterInfoBuilder
impl Clone for ClusterInfoBuilder
Source§fn clone(&self) -> ClusterInfoBuilder
fn clone(&self) -> ClusterInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClusterInfoBuilder
impl Debug for ClusterInfoBuilder
Source§impl Default for ClusterInfoBuilder
impl Default for ClusterInfoBuilder
Source§fn default() -> ClusterInfoBuilder
fn default() -> ClusterInfoBuilder
Returns the “default value” for a type. Read more
Source§impl From<ClusterInfo> for ClusterInfoBuilder
impl From<ClusterInfo> for ClusterInfoBuilder
Source§fn from(c: ClusterInfo) -> Self
fn from(c: ClusterInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClusterInfoBuilder
impl PartialEq for ClusterInfoBuilder
impl StructuralPartialEq for ClusterInfoBuilder
Auto Trait Implementations§
impl Freeze for ClusterInfoBuilder
impl RefUnwindSafe for ClusterInfoBuilder
impl Send for ClusterInfoBuilder
impl Sync for ClusterInfoBuilder
impl Unpin for ClusterInfoBuilder
impl UnwindSafe for ClusterInfoBuilder
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