Struct dacite::core::Offset3D
[−]
[src]
pub struct Offset3D { pub x: i32, pub y: i32, pub z: i32, }
See VkOffset3D
Fields
x: i32
y: i32
z: i32
Methods
impl Offset3D
[src]
fn new(x: i32, y: i32, z: i32) -> Self
Creates a new Offset3D
.
fn zero() -> Self
Creates an Offset3D
with all components set to 0.
fn from_2d(offset: &Offset2D, z: i32) -> Self
Creates an Offset3D
from an Offset2D
and the specified z
component.
Trait Implementations
impl Debug for Offset3D
[src]
impl Copy for Offset3D
[src]
impl Clone for Offset3D
[src]
fn clone(&self) -> Offset3D
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Offset3D
[src]
fn eq(&self, __arg_0: &Offset3D) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Offset3D) -> bool
This method tests for !=
.