pub struct PointMesh<const N: usize> {
pub positions: Vec<[f32; N]>,
pub colors: Vec<[f32; 4]>,
pub sizes: Vec<f32>,
}Fields§
§positions: Vec<[f32; N]>§colors: Vec<[f32; 4]>colors.len() == positions.len().
sizes: Vec<f32>Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for PointMesh<N>
impl<'de, const N: usize> Deserialize<'de> for PointMesh<N>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<const N: usize> Freeze for PointMesh<N>
impl<const N: usize> RefUnwindSafe for PointMesh<N>
impl<const N: usize> Send for PointMesh<N>
impl<const N: usize> Sync for PointMesh<N>
impl<const N: usize> Unpin for PointMesh<N>
impl<const N: usize> UnsafeUnpin for PointMesh<N>
impl<const N: usize> UnwindSafe for PointMesh<N>
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