Enum tract_hir::internal::tract_linalg::frame::mmm::MatrixStore[][src]

pub enum MatrixStore<'s, 't> {
    Strides {
        ptr: *mut c_void,
        row_byte_stride: isize,
        col_byte_stride: isize,
        row_item_stride: isize,
        col_item_stride: isize,
        panel_row_byte_stride: isize,
        panel_col_byte_stride: isize,
        item_size: usize,
        item_count: usize,
        mr: usize,
    },
    Packed {
        ptr: *const c_void,
        item_size: usize,
        panel_bytes: isize,
    },
    OffsetsAndPtrs {
        row_byte_offsets: *const isize,
        col_ptrs: Vec<*const c_void, Global>,
        nr: usize,
    },
    _Phantom(&'s (), &'t ()),
}

Variants

Strides

Fields of Strides

ptr: *mut c_voidrow_byte_stride: isizecol_byte_stride: isizerow_item_stride: isizecol_item_stride: isizepanel_row_byte_stride: isizepanel_col_byte_stride: isizeitem_size: usizeitem_count: usizemr: usize
Packed

Fields of Packed

ptr: *const c_voiditem_size: usizepanel_bytes: isize
OffsetsAndPtrs

Fields of OffsetsAndPtrs

row_byte_offsets: *const isizecol_ptrs: Vec<*const c_void, Global>nr: usize
_Phantom(&'s (), &'t ())

Tuple Fields of _Phantom

0: &'s ()1: &'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

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.