Enum cameleon_genapi::interface::IRegisterKind
source · pub enum IRegisterKind<'a> {
Register(&'a RegisterNode),
IntReg(&'a IntRegNode),
MaskedIntReg(&'a MaskedIntRegNode),
StringReg(&'a StringRegNode),
FloatReg(&'a FloatRegNode),
}
Variants§
Register(&'a RegisterNode)
IntReg(&'a IntRegNode)
MaskedIntReg(&'a MaskedIntRegNode)
StringReg(&'a StringRegNode)
FloatReg(&'a FloatRegNode)
Trait Implementations§
source§impl<'a> Clone for IRegisterKind<'a>
impl<'a> Clone for IRegisterKind<'a>
source§fn clone(&self) -> IRegisterKind<'a>
fn clone(&self) -> IRegisterKind<'a>
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<'a> Debug for IRegisterKind<'a>
impl<'a> Debug for IRegisterKind<'a>
source§impl<'a> IRegister for IRegisterKind<'a>
impl<'a> IRegister for IRegisterKind<'a>
source§fn read<T: ValueStore, U: CacheStore>(
&self,
buf: &mut [u8],
device: &mut impl Device,
store: &impl NodeStore,
cx: &mut ValueCtxt<T, U>
) -> GenApiResult<()>
fn read<T: ValueStore, U: CacheStore>( &self, buf: &mut [u8], device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U> ) -> GenApiResult<()>
Read bytes from the register. Read more
source§fn write<T: ValueStore, U: CacheStore>(
&self,
buf: &[u8],
device: &mut impl Device,
store: &impl NodeStore,
cx: &mut ValueCtxt<T, U>
) -> GenApiResult<()>
fn write<T: ValueStore, U: CacheStore>( &self, buf: &[u8], device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U> ) -> GenApiResult<()>
Write bytes to the register. Read more
fn address<T: ValueStore, U: CacheStore>( &self, device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U> ) -> GenApiResult<i64>
fn length<T: ValueStore, U: CacheStore>( &self, device: &mut impl Device, store: &impl NodeStore, cx: &mut ValueCtxt<T, U> ) -> GenApiResult<i64>
impl<'a> Copy for IRegisterKind<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for IRegisterKind<'a>
impl<'a> Send for IRegisterKind<'a>
impl<'a> Sync for IRegisterKind<'a>
impl<'a> Unpin for IRegisterKind<'a>
impl<'a> UnwindSafe for IRegisterKind<'a>
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