pub struct GpuVmBo<T: DriverGpuVm> { /* private fields */ }Expand description
Implementations§
Source§impl<T: DriverGpuVm> GpuVmBo<T>
impl<T: DriverGpuVm> GpuVmBo<T>
Sourcepub fn project<'__this>(
self: Pin<&'__this mut Self>,
) -> __Projection<'__this, T>
pub fn project<'__this>( self: Pin<&'__this mut Self>, ) -> __Projection<'__this, T>
Pin-projects all fields of Self.
These fields are structurally pinned:
innerdata
These fields are not structurally pinned:
Sourcepub fn with_project<'__this, R>(
self: Pin<&'__this mut Self>,
f: impl FnOnce(__ProjectionLt<'__this, T>) -> R,
) -> R
pub fn with_project<'__this, R>( self: Pin<&'__this mut Self>, f: impl FnOnce(__ProjectionLt<'__this, T>) -> R, ) -> R
Pin-projects all fields of Self with proper lifetime.
These fields are structurally pinned:
innerdata
These fields are not structurally pinned:
Sourcepub fn with_project_ref<'__this, R>(
self: Pin<&'__this Self>,
f: impl FnOnce(__ProjectionRef<'__this, T>) -> R,
) -> R
pub fn with_project_ref<'__this, R>( self: Pin<&'__this Self>, f: impl FnOnce(__ProjectionRef<'__this, T>) -> R, ) -> R
Pin-projects all fields of Self from a shared reference with proper lifetime.
These fields are structurally pinned:
innerdata
These fields are not structurally pinned:
Source§impl<T: DriverGpuVm> GpuVmBo<T>
impl<T: DriverGpuVm> GpuVmBo<T>
Sourcepub fn obj(&self) -> &T::Object
pub fn obj(&self) -> &T::Object
The drm_gem_object for these mappings.
Trait Implementations§
Source§impl<T: DriverGpuVm> AlwaysRefCounted for GpuVmBo<T>
impl<T: DriverGpuVm> AlwaysRefCounted for GpuVmBo<T>
impl<T: DriverGpuVm> Eq for GpuVmBo<T>
Source§impl<T: DriverGpuVm> HasPinData for GpuVmBo<T>
impl<T: DriverGpuVm> HasPinData for GpuVmBo<T>
Source§impl<T: DriverGpuVm> PartialEq for GpuVmBo<T>
impl<T: DriverGpuVm> PartialEq for GpuVmBo<T>
impl<T: DriverGpuVm> Send for GpuVmBo<T>
impl<T: DriverGpuVm> Sync for GpuVmBo<T>
Auto Trait Implementations§
impl<T> !Freeze for GpuVmBo<T>
impl<T> !RefUnwindSafe for GpuVmBo<T>
impl<T> !UnsafeUnpin for GpuVmBo<T>
impl<T> UnwindSafe for GpuVmBo<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.