pub struct MetalOrigin {
pub x: usize,
pub y: usize,
pub z: usize,
}Expand description
Re-exports the Metal framework surface for this item.
Mirrors the Metal framework counterpart for MetalOrigin.
§Examples
use apple_metal::MetalOrigin;
let origin = MetalOrigin::new(4, 2, 1);
assert_eq!((origin.x, origin.y, origin.z), (4, 2, 1));Fields§
§x: usizeMirrors the Metal framework property for x.
y: usizeMirrors the Metal framework property for y.
z: usizeMirrors the Metal framework property for z.
Implementations§
Trait Implementations§
Source§impl Clone for MetalOrigin
impl Clone for MetalOrigin
Source§fn clone(&self) -> MetalOrigin
fn clone(&self) -> MetalOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetalOrigin
Source§impl Debug for MetalOrigin
impl Debug for MetalOrigin
Source§impl Default for MetalOrigin
impl Default for MetalOrigin
Source§fn default() -> MetalOrigin
fn default() -> MetalOrigin
Returns the “default value” for a type. Read more
impl Eq for MetalOrigin
Source§impl Hash for MetalOrigin
impl Hash for MetalOrigin
Source§impl PartialEq for MetalOrigin
impl PartialEq for MetalOrigin
Source§fn eq(&self, other: &MetalOrigin) -> bool
fn eq(&self, other: &MetalOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetalOrigin
Auto Trait Implementations§
impl Freeze for MetalOrigin
impl RefUnwindSafe for MetalOrigin
impl Send for MetalOrigin
impl Sync for MetalOrigin
impl Unpin for MetalOrigin
impl UnsafeUnpin for MetalOrigin
impl UnwindSafe for MetalOrigin
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