Skip to main content

BlockedCoo

Struct BlockedCoo 

Source
pub struct BlockedCoo<const BM: usize, const BN: usize>;
Expand description

Blocked COO format marker.

  • BM: block row count
  • BN: block column count

Trait Implementations§

Source§

impl<const BM: usize, const BN: usize> Clone for BlockedCoo<BM, BN>

Source§

fn clone(&self) -> BlockedCoo<BM, BN>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const BM: usize, const BN: usize> Copy for BlockedCoo<BM, BN>

Source§

impl<const BM: usize, const BN: usize> CowFormat for BlockedCoo<BM, BN>

Source§

type Owned<T> = OwnedBlockedCoo<T, BM, BN> where T: Send + Sync

Heap-owned storage for this format.
Source§

fn as_storage<T: Send + Sync>( owned: &Self::Owned<T>, ) -> BlockedCooData<'_, T, BM, BN>

Re-borrow owned storage as the format’s view storage (zero-copy).
Source§

fn to_owned_storage<T: Clone + Send + Sync>( d: &BlockedCooData<'_, T, BM, BN>, ) -> OwnedBlockedCoo<T, BM, BN>

Clone a borrowed view storage into owned storage (one allocation set).
Source§

impl<const BM: usize, const BN: usize> Debug for BlockedCoo<BM, BN>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const BM: usize, const BN: usize> Eq for BlockedCoo<BM, BN>

Source§

impl<const BM: usize, const BN: usize> PartialEq for BlockedCoo<BM, BN>

Source§

fn eq(&self, other: &BlockedCoo<BM, BN>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<const BM: usize, const BN: usize> SparseFormat for BlockedCoo<BM, BN>

Source§

const NAME: &'static str = "Blocked-COO"

Human-readable format name for diagnostics.
Source§

type Storage<'a, T: 'a> = BlockedCooMatrix<T, BM, BN, &'a [T], &'a [i32]>

The concrete data struct type for this format, parameterized by lifetime 'a and element type T.
Source§

impl<const BM: usize, const BN: usize> StructuralPartialEq for BlockedCoo<BM, BN>

Auto Trait Implementations§

§

impl<const BM: usize, const BN: usize> Freeze for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> RefUnwindSafe for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> Send for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> Sync for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> Unpin for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> UnsafeUnpin for BlockedCoo<BM, BN>

§

impl<const BM: usize, const BN: usize> UnwindSafe for BlockedCoo<BM, BN>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CastTo for T
where T: Copy,

Source§

fn cast_to<U>(self) -> U
where U: CastFrom<Self>,

Cast self to type U.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.