pub struct CpuBackend;Trait Implementations§
Source§impl Allocator for CpuBackend
impl Allocator for CpuBackend
Source§unsafe fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError>
unsafe fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError>
Attempts to allocate a block of memory. Read more
Source§unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout)
unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout)
Deallocates the memory referenced by
ptr. Read morefn by_ref(&self) -> &Selfwhere
Self: Sized,
Source§impl Backend for CpuBackend
impl Backend for CpuBackend
Source§impl Clone for CpuBackend
impl Clone for CpuBackend
Source§fn clone(&self) -> CpuBackend
fn clone(&self) -> CpuBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuBackend
impl Debug for CpuBackend
Source§impl Default for CpuBackend
impl Default for CpuBackend
Source§fn default() -> CpuBackend
fn default() -> CpuBackend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CpuBackend
impl<'de> Deserialize<'de> for CpuBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeviceMemory for CpuBackend
impl DeviceMemory for CpuBackend
Source§impl GlobalBackend for CpuBackend
impl GlobalBackend for CpuBackend
Source§impl Hash for CpuBackend
impl Hash for CpuBackend
Source§impl Ord for CpuBackend
impl Ord for CpuBackend
Source§fn cmp(&self, other: &CpuBackend) -> Ordering
fn cmp(&self, other: &CpuBackend) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CpuBackend
impl PartialEq for CpuBackend
Source§impl PartialOrd for CpuBackend
impl PartialOrd for CpuBackend
Source§impl Serialize for CpuBackend
impl Serialize for CpuBackend
impl Copy for CpuBackend
impl Eq for CpuBackend
impl StructuralPartialEq for CpuBackend
Auto Trait Implementations§
impl Freeze for CpuBackend
impl RefUnwindSafe for CpuBackend
impl Send for CpuBackend
impl Sync for CpuBackend
impl Unpin for CpuBackend
impl UnwindSafe for CpuBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, Src, A> CanCopyFrom<T, Src> for A
impl<T, Src, A> CanCopyFrom<T, Src> for A
Source§impl<T, Src, A> CanCopyFromRef<T, Src> for A
impl<T, Src, A> CanCopyFromRef<T, Src> for A
Source§impl<T, Dst, A> CanCopyInto<T, Dst> for A
impl<T, Dst, A> CanCopyInto<T, Dst> for A
type Output = <Dst as CanCopyFrom<T, A>>::Output
fn copy_to_dst( dst: &Dst, value: T, ) -> Result<<A as CanCopyInto<T, Dst>>::Output, CopyError>
Source§impl<T, Dst, Src> CanCopyIntoRef<T, Dst> for Src
impl<T, Dst, Src> CanCopyIntoRef<T, Dst> for Src
type Output = <Dst as CanCopyFromRef<T, Src>>::Output
fn copy_to_dst( dst: &Dst, value: &T, ) -> Result<<Src as CanCopyIntoRef<T, Dst>>::Output, CopyError>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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