Struct dacite::core::Offset2D
[−]
[src]
pub struct Offset2D { pub x: i32, pub y: i32, }
See VkOffset2D
Fields
x: i32
y: i32
Methods
impl Offset2D
[src]
fn new(x: i32, y: i32) -> Self
Creates a new Offset2D
.
fn zero() -> Self
Creates an Offset2D
with all components set to 0.
fn from_3d(offset: &Offset3D) -> Self
Creates an Offset2D
from an Offset3D
by discarding the z
component.
Trait Implementations
impl Debug for Offset2D
[src]
impl Copy for Offset2D
[src]
impl Clone for Offset2D
[src]
fn clone(&self) -> Offset2D
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 Offset2D
[src]
fn eq(&self, __arg_0: &Offset2D) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Offset2D) -> bool
This method tests for !=
.
impl Eq for Offset2D
[src]
impl Hash for Offset2D
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> From<&'a VkOffset2D> for Offset2D
[src]
fn from(offset: &'a VkOffset2D) -> Self
Performs the conversion.