Struct ascii_forge::math::Vec2
source · pub struct Vec2 {
pub x: u16,
pub y: u16,
}
Expand description
A 2d Vector that has no math, is only used as a pretty version of a tuple of u16s Can be made from (u16, u16). Using a single u16.into() will create a vec2 where both values are the same.
Fields§
§x: u16
§y: u16
Trait Implementations§
source§impl Ord for Vec2
impl Ord for Vec2
source§impl PartialOrd for Vec2
impl PartialOrd for Vec2
impl Copy for Vec2
impl Eq for Vec2
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl Freeze for Vec2
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnwindSafe for Vec2
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§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
)