#[repr(C, packed(1))]pub struct SizeAndAlign {
pub size: UInteger,
pub align: UInteger,
}Expand description
Size and alignment for resource allocation.
C++ equivalent: MTL::SizeAndAlign
Fields§
§size: UInteger§align: UIntegerTrait Implementations§
Source§impl Clone for SizeAndAlign
impl Clone for SizeAndAlign
Source§fn clone(&self) -> SizeAndAlign
fn clone(&self) -> SizeAndAlign
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 SizeAndAlign
impl Debug for SizeAndAlign
Source§impl Default for SizeAndAlign
impl Default for SizeAndAlign
Source§fn default() -> SizeAndAlign
fn default() -> SizeAndAlign
Returns the “default value” for a type. Read more
Source§impl Hash for SizeAndAlign
impl Hash for SizeAndAlign
Source§impl PartialEq for SizeAndAlign
impl PartialEq for SizeAndAlign
impl Copy for SizeAndAlign
impl Eq for SizeAndAlign
impl StructuralPartialEq for SizeAndAlign
Auto Trait Implementations§
impl Freeze for SizeAndAlign
impl RefUnwindSafe for SizeAndAlign
impl Send for SizeAndAlign
impl Sync for SizeAndAlign
impl Unpin for SizeAndAlign
impl UnwindSafe for SizeAndAlign
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