Enum svd_rs::cluster::Cluster [−][src]
pub enum Cluster {
Single(ClusterInfo),
Array(ClusterInfo, DimElement),
}
Expand description
Cluster describes a sequence of neighboring registers within a peripheral.
Variants
Single(ClusterInfo)
A single cluster, without any dimension.
Tuple Fields of Single
0: ClusterInfo
Array(ClusterInfo, DimElement)
A cluster array
Tuple Fields of Array
0: ClusterInfo
1: DimElement
Methods from Deref<Target = ClusterInfo>
pub fn modify_from(
&mut self,
builder: ClusterInfoBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
pub fn modify_from(
&mut self,
builder: ClusterInfoBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
Modify an existing ClusterInfo
based on a builder.
Validate the ClusterInfo
returns a iterator over all registers the cluster contains
pub fn reg_iter_mut(&mut self) -> RegIterMut<'_>ⓘNotable traits for RegIterMut<'a>impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
pub fn reg_iter_mut(&mut self) -> RegIterMut<'_>ⓘNotable traits for RegIterMut<'a>impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
Notable traits for RegIterMut<'a>
impl<'a> Iterator for RegIterMut<'a> type Item = &'a mut Register;
returns a mutable iterator over all registers cluster contains
Trait Implementations
type Target = ClusterInfo
type Target = ClusterInfo
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for Cluster
impl UnwindSafe for Cluster
Blanket Implementations
Mutably borrows from an owned value. Read more