Struct rumio::Value[][src]

pub struct Value<I> { /* fields omitted */ }

A value that can be applied to any register using the modify method.

This is also used to modify mulitple bitfields in one write operation.

Implementations

impl Value<u8>[src]

pub const fn new(mask: u8, bits: u8) -> Self[src]

Create a new Value with the given mask and bits.

impl Value<u16>[src]

pub const fn new(mask: u16, bits: u16) -> Self[src]

Create a new Value with the given mask and bits.

impl Value<u32>[src]

pub const fn new(mask: u32, bits: u32) -> Self[src]

Create a new Value with the given mask and bits.

impl Value<u64>[src]

pub const fn new(mask: u64, bits: u64) -> Self[src]

Create a new Value with the given mask and bits.

impl Value<usize>[src]

pub const fn new(mask: usize, bits: usize) -> Self[src]

Create a new Value with the given mask and bits.

impl<I: Int> Value<I>[src]

pub fn modify(self, val: I) -> I[src]

Modify all bits that are specified by this Value in the given value and return the modified version.

Trait Implementations

impl BitOr<Flags> for Value<u64>[src]

type Output = Value<u64>

The resulting type after applying the | operator.

impl BitOr<Flags> for Value<u16>[src]

type Output = Value<u16>

The resulting type after applying the | operator.

impl BitOr<Mode> for Value<u64>[src]

type Output = Value<u64>

The resulting type after applying the | operator.

impl BitOr<Mode> for Value<u16>[src]

type Output = Value<u16>

The resulting type after applying the | operator.

impl<I: Int> BitOr<Value<I>> for Value<I>[src]

type Output = Value<I>

The resulting type after applying the | operator.

impl BitOr<Value<u16>> for Mode[src]

type Output = Value<u16>

The resulting type after applying the | operator.

impl BitOr<Value<u16>> for Flags[src]

type Output = Value<u16>

The resulting type after applying the | operator.

impl BitOr<Value<u64>> for Mode[src]

type Output = Value<u64>

The resulting type after applying the | operator.

impl BitOr<Value<u64>> for Flags[src]

type Output = Value<u64>

The resulting type after applying the | operator.

impl<I: Clone> Clone for Value<I>[src]

impl<I: Copy> Copy for Value<I>[src]

impl<I: Debug> Debug for Value<I>[src]

impl From<Flags> for Value<u64>[src]

impl From<Flags> for Value<u16>[src]

impl From<Mode> for Value<u64>[src]

impl From<Mode> for Value<u16>[src]

Auto Trait Implementations

impl<I> Send for Value<I> where
    I: Send
[src]

impl<I> Sync for Value<I> where
    I: Sync
[src]

impl<I> Unpin for Value<I> where
    I: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.