pub struct Point4F32Slice<'a> { /* private fields */ }Expand description
Slice of weighted (rational) homogeneous 4-component f32 control points
– backing for point4_f32_slice! (NURBS
rational positions Pw, RGBA-style colour-with-alpha attributes, etc.).
On the wire this is a flat NSITypeFloat slice – the renderer infers
the 4-component grouping from the attribute name (Pw). The wrapper
exists so callers can keep the natural &[[f32; 4]] shape in Rust
while the FFI sees 4 * N flat floats.
Implementations§
Source§impl<'a> Point4F32Slice<'a>
impl<'a> Point4F32Slice<'a>
pub fn new(data: &'a [[f32; 4]]) -> Point4F32Slice<'a>
Trait Implementations§
Source§impl<'a> Clone for Point4F32Slice<'a>
impl<'a> Clone for Point4F32Slice<'a>
Source§fn clone(&self) -> Point4F32Slice<'a>
fn clone(&self) -> Point4F32Slice<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Point4F32Slice<'a>
impl<'a> Debug for Point4F32Slice<'a>
Source§impl<'a, 'b> From<Point4F32Slice<'a>> for ArgData<'a, 'b>
impl<'a, 'b> From<Point4F32Slice<'a>> for ArgData<'a, 'b>
Source§fn from(v: Point4F32Slice<'a>) -> ArgData<'a, 'b>
fn from(v: Point4F32Slice<'a>) -> ArgData<'a, 'b>
Converts to this type from the input type.
Source§impl<'a> PartialEq for Point4F32Slice<'a>
impl<'a> PartialEq for Point4F32Slice<'a>
impl<'a> StructuralPartialEq for Point4F32Slice<'a>
Auto Trait Implementations§
impl<'a> Freeze for Point4F32Slice<'a>
impl<'a> RefUnwindSafe for Point4F32Slice<'a>
impl<'a> Send for Point4F32Slice<'a>
impl<'a> Sync for Point4F32Slice<'a>
impl<'a> Unpin for Point4F32Slice<'a>
impl<'a> UnsafeUnpin for Point4F32Slice<'a>
impl<'a> UnwindSafe for Point4F32Slice<'a>
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