pub struct SparseLevel {
pub sparse_residency: bool,
pub sparse_aliased: bool,
pub _ne: NonExhaustive,
}
Expand description
The level of sparse binding that a buffer should be created with.
Fields
sparse_residency: bool
sparse_aliased: bool
_ne: NonExhaustive
Implementations
sourceimpl SparseLevel
impl SparseLevel
pub fn none() -> SparseLevel
Trait Implementations
sourceimpl Clone for SparseLevel
impl Clone for SparseLevel
sourcefn clone(&self) -> SparseLevel
fn clone(&self) -> SparseLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SparseLevel
impl Debug for SparseLevel
sourceimpl Default for SparseLevel
impl Default for SparseLevel
sourcefn default() -> SparseLevel
fn default() -> SparseLevel
Returns the “default value” for a type. Read more
sourceimpl From<SparseLevel> for BufferCreateFlags
impl From<SparseLevel> for BufferCreateFlags
sourcefn from(val: SparseLevel) -> Self
fn from(val: SparseLevel) -> Self
Performs the conversion.
impl Copy for SparseLevel
Auto Trait Implementations
impl RefUnwindSafe for SparseLevel
impl Send for SparseLevel
impl Sync for SparseLevel
impl Unpin for SparseLevel
impl UnwindSafe for SparseLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more