#[repr(transparent)]
pub struct MemoryField<T: UIntLike, R: RegisterLongName = ()> { pub value: T, /* private fields */ }
Expand description

An on-memory value that can be read and written through the interface of tock_registers and follows inherited mutability.

Fields

value: T

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Get the raw register value

Read the value of the given field

Set the raw register value

Make a local copy of the register

Check if one or more bits in a field are set

Check if any specified parts of a field match

Check if all specified parts of a field match

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.