Struct classicube_sys::IVec3_
source · #[repr(C)]pub struct IVec3_ {
pub x: c_int,
pub y: c_int,
pub z: c_int,
}
Fields§
§x: c_int
§y: c_int
§z: c_int
Implementations§
source§impl IVec3_
impl IVec3_
pub const fn new(x: c_int, y: c_int, z: c_int) -> Self
pub const fn zero() -> Self
pub fn set(&mut self, x: c_int, y: c_int, z: c_int)
pub fn is_zero(&self) -> bool
pub const fn max_value() -> Self
pub fn to_vec3(&self) -> Vec3
pub fn min(&self, b: IVec3) -> Self
pub fn max(&self, b: IVec3) -> Self
Trait Implementations§
source§impl PartialEq for IVec3_
impl PartialEq for IVec3_
impl Copy for IVec3_
impl Eq for IVec3_
impl StructuralPartialEq for IVec3_
Auto Trait Implementations§
impl Freeze for IVec3_
impl RefUnwindSafe for IVec3_
impl Send for IVec3_
impl Sync for IVec3_
impl Unpin for IVec3_
impl UnwindSafe for IVec3_
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)