[][src]Struct r3::kernel::cfg::CfgHunkBuilder

#[must_use = "must call `finish()` to complete registration"]pub struct CfgHunkBuilder<System> { /* fields omitted */ }

Configuration builder type for Hunk.

Implementations

impl<System: Port> CfgHunkBuilder<System>[src]

pub const fn len(self, len: usize) -> Self[src]

Specify the element count. Defaults to 1. Must be 1 for a non-array hunk.

pub const fn align(self, align: usize) -> Self[src]

Specify the minimum alignment. Defaults to 1.

impl<System: Port> CfgHunkBuilder<System>[src]

pub const fn finish(self, cfg: &mut CfgBuilder<System>) -> Hunk<System>[src]

Complete the definition of a hunk, returning a reference to the hunk.

Auto Trait Implementations

impl<System> Send for CfgHunkBuilder<System> where
    System: Send
[src]

impl<System> Sync for CfgHunkBuilder<System> where
    System: Sync
[src]

impl<System> Unpin for CfgHunkBuilder<System> where
    System: 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.