pub struct AlignmentInfo {
pub ptr: CUdeviceptr,
pub natural_alignment: usize,
pub is_256_aligned: bool,
pub is_512_aligned: bool,
pub is_page_aligned: bool,
}Expand description
Information about the alignment of an existing device pointer.
Fields§
§ptr: CUdeviceptrThe device pointer that was inspected.
natural_alignment: usizeThe largest power-of-two alignment that the pointer satisfies.
is_256_aligned: boolWhether the pointer is 256-byte aligned.
is_512_aligned: boolWhether the pointer is 512-byte aligned.
is_page_aligned: boolWhether the pointer is page-aligned (4096 bytes).
Trait Implementations§
Source§impl Clone for AlignmentInfo
impl Clone for AlignmentInfo
Source§fn clone(&self) -> AlignmentInfo
fn clone(&self) -> AlignmentInfo
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 AlignmentInfo
impl Debug for AlignmentInfo
Source§impl PartialEq for AlignmentInfo
impl PartialEq for AlignmentInfo
impl Copy for AlignmentInfo
impl Eq for AlignmentInfo
impl StructuralPartialEq for AlignmentInfo
Auto Trait Implementations§
impl Freeze for AlignmentInfo
impl RefUnwindSafe for AlignmentInfo
impl Send for AlignmentInfo
impl Sync for AlignmentInfo
impl Unpin for AlignmentInfo
impl UnsafeUnpin for AlignmentInfo
impl UnwindSafe for AlignmentInfo
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