Struct LayoutMatMulConfig

Source
pub struct LayoutMatMulConfig<DA, DB>
where DA: DimAPI, DB: DimAPI, Self: LayoutMatMulAPI<DA, DB>,
{ pub matmul_type: MatMulType, pub lc: Layout<<Self as LayoutMatMulAPI<DA, DB>>::DC>, pub la_rest: Option<Layout<IxD>>, pub lb_rest: Option<Layout<IxD>>, pub lc_rest: Option<Layout<IxD>>, pub la_matmul: Layout<IxD>, pub lb_matmul: Layout<IxD>, pub lc_matmul: Layout<IxD>, }

Fields§

§matmul_type: MatMulType§lc: Layout<<Self as LayoutMatMulAPI<DA, DB>>::DC>§la_rest: Option<Layout<IxD>>§lb_rest: Option<Layout<IxD>>§lc_rest: Option<Layout<IxD>>§la_matmul: Layout<IxD>§lb_matmul: Layout<IxD>§lc_matmul: Layout<IxD>

Trait Implementations§

Source§

impl<DA, DB> Clone for LayoutMatMulConfig<DA, DB>
where DA: DimAPI + Clone, DB: DimAPI + Clone, Self: LayoutMatMulAPI<DA, DB>,

Source§

fn clone(&self) -> LayoutMatMulConfig<DA, DB>

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<DA, DB> Debug for LayoutMatMulConfig<DA, DB>
where DA: DimAPI + Debug, DB: DimAPI + Debug, Self: LayoutMatMulAPI<DA, DB>,

Source§

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

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

impl LayoutMatMulAPI<[usize; 1], [usize; 1]> for LayoutMatMulConfig<Ix1, Ix1>

Source§

type DC = [usize; 0]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix1>, _: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 2]> for LayoutMatMulConfig<Ix1, Ix2>

Source§

type DC = [usize; 1]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 3]> for LayoutMatMulConfig<Ix1, Ix3>

Source§

type DC = [usize; 2]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix3>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 4]> for LayoutMatMulConfig<Ix1, Ix4>

Source§

type DC = [usize; 3]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix4>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 5]> for LayoutMatMulConfig<Ix1, Ix5>

Source§

type DC = [usize; 4]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix5>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 6]> for LayoutMatMulConfig<Ix1, Ix6>

Source§

type DC = [usize; 5]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix6>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 7]> for LayoutMatMulConfig<Ix1, Ix7>

Source§

type DC = [usize; 6]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix7>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 8]> for LayoutMatMulConfig<Ix1, Ix8>

Source§

type DC = [usize; 7]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix8>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], [usize; 9]> for LayoutMatMulConfig<Ix1, Ix9>

Source§

type DC = [usize; 8]

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<Ix9>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 1], Vec<usize>> for LayoutMatMulConfig<Ix1, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix1>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 1]> for LayoutMatMulConfig<Ix2, Ix1>

Source§

type DC = [usize; 1]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 2]> for LayoutMatMulConfig<Ix2, Ix2>

Source§

type DC = [usize; 2]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 3]> for LayoutMatMulConfig<Ix2, Ix3>

Source§

type DC = [usize; 3]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix3>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 4]> for LayoutMatMulConfig<Ix2, Ix4>

Source§

type DC = [usize; 4]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix4>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 5]> for LayoutMatMulConfig<Ix2, Ix5>

Source§

type DC = [usize; 5]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix5>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 6]> for LayoutMatMulConfig<Ix2, Ix6>

Source§

type DC = [usize; 6]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix6>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 7]> for LayoutMatMulConfig<Ix2, Ix7>

Source§

type DC = [usize; 7]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix7>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 8]> for LayoutMatMulConfig<Ix2, Ix8>

Source§

type DC = [usize; 8]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix8>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], [usize; 9]> for LayoutMatMulConfig<Ix2, Ix9>

Source§

type DC = [usize; 9]

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<Ix9>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 2], Vec<usize>> for LayoutMatMulConfig<Ix2, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix2>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 3], [usize; 1]> for LayoutMatMulConfig<Ix3, Ix1>

Source§

type DC = [usize; 2]

Source§

fn layout_matmul( la: &Layout<Ix3>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 3], [usize; 2]> for LayoutMatMulConfig<Ix3, Ix2>

Source§

type DC = [usize; 3]

Source§

fn layout_matmul( la: &Layout<Ix3>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 3], [usize; 3]> for LayoutMatMulConfig<Ix3, Ix3>

Source§

type DC = [usize; 3]

Source§

fn layout_matmul( la: &Layout<Ix3>, lb: &Layout<Ix3>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 3], Vec<usize>> for LayoutMatMulConfig<Ix3, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix3>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 4], [usize; 1]> for LayoutMatMulConfig<Ix4, Ix1>

Source§

type DC = [usize; 3]

Source§

fn layout_matmul( la: &Layout<Ix4>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 4], [usize; 2]> for LayoutMatMulConfig<Ix4, Ix2>

Source§

type DC = [usize; 4]

Source§

fn layout_matmul( la: &Layout<Ix4>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 4], [usize; 4]> for LayoutMatMulConfig<Ix4, Ix4>

Source§

type DC = [usize; 4]

Source§

fn layout_matmul( la: &Layout<Ix4>, lb: &Layout<Ix4>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 4], Vec<usize>> for LayoutMatMulConfig<Ix4, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix4>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 5], [usize; 1]> for LayoutMatMulConfig<Ix5, Ix1>

Source§

type DC = [usize; 4]

Source§

fn layout_matmul( la: &Layout<Ix5>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 5], [usize; 2]> for LayoutMatMulConfig<Ix5, Ix2>

Source§

type DC = [usize; 5]

Source§

fn layout_matmul( la: &Layout<Ix5>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 5], [usize; 5]> for LayoutMatMulConfig<Ix5, Ix5>

Source§

type DC = [usize; 5]

Source§

fn layout_matmul( la: &Layout<Ix5>, lb: &Layout<Ix5>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 5], Vec<usize>> for LayoutMatMulConfig<Ix5, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix5>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 6], [usize; 1]> for LayoutMatMulConfig<Ix6, Ix1>

Source§

type DC = [usize; 5]

Source§

fn layout_matmul( la: &Layout<Ix6>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 6], [usize; 2]> for LayoutMatMulConfig<Ix6, Ix2>

Source§

type DC = [usize; 6]

Source§

fn layout_matmul( la: &Layout<Ix6>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 6], [usize; 6]> for LayoutMatMulConfig<Ix6, Ix6>

Source§

type DC = [usize; 6]

Source§

fn layout_matmul( la: &Layout<Ix6>, lb: &Layout<Ix6>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 6], Vec<usize>> for LayoutMatMulConfig<Ix6, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix6>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 7], [usize; 1]> for LayoutMatMulConfig<Ix7, Ix1>

Source§

type DC = [usize; 6]

Source§

fn layout_matmul( la: &Layout<Ix7>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 7], [usize; 2]> for LayoutMatMulConfig<Ix7, Ix2>

Source§

type DC = [usize; 7]

Source§

fn layout_matmul( la: &Layout<Ix7>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 7], [usize; 7]> for LayoutMatMulConfig<Ix7, Ix7>

Source§

type DC = [usize; 7]

Source§

fn layout_matmul( la: &Layout<Ix7>, lb: &Layout<Ix7>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 7], Vec<usize>> for LayoutMatMulConfig<Ix7, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix7>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 8], [usize; 1]> for LayoutMatMulConfig<Ix8, Ix1>

Source§

type DC = [usize; 7]

Source§

fn layout_matmul( la: &Layout<Ix8>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 8], [usize; 2]> for LayoutMatMulConfig<Ix8, Ix2>

Source§

type DC = [usize; 8]

Source§

fn layout_matmul( la: &Layout<Ix8>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 8], [usize; 8]> for LayoutMatMulConfig<Ix8, Ix8>

Source§

type DC = [usize; 8]

Source§

fn layout_matmul( la: &Layout<Ix8>, lb: &Layout<Ix8>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 8], Vec<usize>> for LayoutMatMulConfig<Ix8, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix8>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 9], [usize; 1]> for LayoutMatMulConfig<Ix9, Ix1>

Source§

type DC = [usize; 8]

Source§

fn layout_matmul( la: &Layout<Ix9>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 9], [usize; 2]> for LayoutMatMulConfig<Ix9, Ix2>

Source§

type DC = [usize; 9]

Source§

fn layout_matmul( la: &Layout<Ix9>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 9], [usize; 9]> for LayoutMatMulConfig<Ix9, Ix9>

Source§

type DC = [usize; 9]

Source§

fn layout_matmul( la: &Layout<Ix9>, lb: &Layout<Ix9>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<[usize; 9], Vec<usize>> for LayoutMatMulConfig<Ix9, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<Ix9>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 1]> for LayoutMatMulConfig<IxD, Ix1>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix1>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 2]> for LayoutMatMulConfig<IxD, Ix2>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix2>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 3]> for LayoutMatMulConfig<IxD, Ix3>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix3>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 4]> for LayoutMatMulConfig<IxD, Ix4>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix4>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 5]> for LayoutMatMulConfig<IxD, Ix5>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix5>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 6]> for LayoutMatMulConfig<IxD, Ix6>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix6>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 7]> for LayoutMatMulConfig<IxD, Ix7>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix7>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 8]> for LayoutMatMulConfig<IxD, Ix8>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix8>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, [usize; 9]> for LayoutMatMulConfig<IxD, Ix9>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<Ix9>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more
Source§

impl LayoutMatMulAPI<Vec<usize>, Vec<usize>> for LayoutMatMulConfig<IxD, IxD>

Source§

type DC = Vec<usize>

Source§

fn layout_matmul( la: &Layout<IxD>, lb: &Layout<IxD>, order: TensorIterOrder, ) -> Result<Self>

Layout configuration for matmul. Read more

Auto Trait Implementations§

§

impl<DA, DB> !Freeze for LayoutMatMulConfig<DA, DB>

§

impl<DA, DB> !RefUnwindSafe for LayoutMatMulConfig<DA, DB>

§

impl<DA, DB> Send for LayoutMatMulConfig<DA, DB>
where LayoutMatMulConfig<DA, DB>: Sized,

§

impl<DA, DB> Sync for LayoutMatMulConfig<DA, DB>
where LayoutMatMulConfig<DA, DB>: Sized,

§

impl<DA, DB> !Unpin for LayoutMatMulConfig<DA, DB>

§

impl<DA, DB> !UnwindSafe for LayoutMatMulConfig<DA, DB>

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> 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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.