pub struct BVec2 {
pub x: bool,
pub y: bool,
}Expand description
a boolean vector with an x and y component
Fields§
§x: bool§y: boolImplementations§
Trait Implementations§
Source§impl AsUniformValue for BVec2
impl AsUniformValue for BVec2
Source§fn as_uniform_value(&self) -> UniformValue<'_>
fn as_uniform_value(&self) -> UniformValue<'_>
Builds a
UniformValue.Source§impl BitAndAssign for BVec2
impl BitAndAssign for BVec2
Source§fn bitand_assign(&mut self, rhs: BVec2)
fn bitand_assign(&mut self, rhs: BVec2)
Performs the
&= operation. Read moreSource§impl BitOrAssign for BVec2
impl BitOrAssign for BVec2
Source§fn bitor_assign(&mut self, rhs: BVec2)
fn bitor_assign(&mut self, rhs: BVec2)
Performs the
|= operation. Read moreSource§impl BitXorAssign for BVec2
impl BitXorAssign for BVec2
Source§fn bitxor_assign(&mut self, rhs: BVec2)
fn bitxor_assign(&mut self, rhs: BVec2)
Performs the
^= operation. Read moreimpl Copy for BVec2
Auto Trait Implementations§
impl Freeze for BVec2
impl RefUnwindSafe for BVec2
impl Send for BVec2
impl Sync for BVec2
impl Unpin for BVec2
impl UnwindSafe for BVec2
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§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned.
User-provided closure F must only write to and not read from &mut Self.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.