Enum svd_rs::array::MaybeArray
source · pub enum MaybeArray<T> {
Single(T),
Array(T, DimElement),
}
Expand description
A single SVD instance or array of instances
Variants§
Implementations§
source§impl<T> MaybeArray<T>
impl<T> MaybeArray<T>
source§impl MaybeArray<FieldInfo>
impl MaybeArray<FieldInfo>
sourcepub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
pub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
Validate the Field
recursively
source§impl MaybeArray<ClusterInfo>
impl MaybeArray<ClusterInfo>
sourcepub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
pub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
Validate the Cluster
recursively
source§impl MaybeArray<RegisterInfo>
impl MaybeArray<RegisterInfo>
sourcepub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
pub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
Validate the Register
recursively
source§impl MaybeArray<PeripheralInfo>
impl MaybeArray<PeripheralInfo>
sourcepub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
pub fn validate_all(&self, lvl: ValidateLevel) -> Result<(), SvdError>
Validate the Peripheral
recursively
Trait Implementations§
source§impl<T: Clone> Clone for MaybeArray<T>
impl<T: Clone> Clone for MaybeArray<T>
source§fn clone(&self) -> MaybeArray<T>
fn clone(&self) -> MaybeArray<T>
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<T: Debug> Debug for MaybeArray<T>
impl<T: Debug> Debug for MaybeArray<T>
source§impl<T> Deref for MaybeArray<T>
impl<T> Deref for MaybeArray<T>
source§impl<T> DerefMut for MaybeArray<T>
impl<T> DerefMut for MaybeArray<T>
source§impl<T> Description for MaybeArray<T>where
T: Description,
impl<T> Description for MaybeArray<T>where
T: Description,
source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Get description
source§impl From<MaybeArray<ClusterInfo>> for RegisterCluster
impl From<MaybeArray<ClusterInfo>> for RegisterCluster
source§impl From<MaybeArray<RegisterInfo>> for RegisterCluster
impl From<MaybeArray<RegisterInfo>> for RegisterCluster
source§impl<T: PartialEq> PartialEq for MaybeArray<T>
impl<T: PartialEq> PartialEq for MaybeArray<T>
source§fn eq(&self, other: &MaybeArray<T>) -> bool
fn eq(&self, other: &MaybeArray<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for MaybeArray<T>
impl<T> StructuralEq for MaybeArray<T>
impl<T> StructuralPartialEq for MaybeArray<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for MaybeArray<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeArray<T>where
T: Send,
impl<T> Sync for MaybeArray<T>where
T: Sync,
impl<T> Unpin for MaybeArray<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeArray<T>where
T: UnwindSafe,
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