pub struct VertexBufferLayoutDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = VertexBufferLayoutDescriptorRef>§
pub fn stride(&self) -> NSUInteger
pub fn set_stride(&self, stride: NSUInteger)
pub fn step_function(&self) -> MTLVertexStepFunction
pub fn set_step_function(&self, func: MTLVertexStepFunction)
pub fn step_rate(&self) -> NSUInteger
pub fn set_step_rate(&self, step_rate: NSUInteger)
Trait Implementations§
Source§impl AsMut<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
impl AsMut<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
Source§fn as_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
fn as_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
impl AsRef<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
Source§fn as_ref(&self) -> &VertexBufferLayoutDescriptorRef
fn as_ref(&self) -> &VertexBufferLayoutDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
impl Borrow<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
Source§fn borrow(&self) -> &VertexBufferLayoutDescriptorRef
fn borrow(&self) -> &VertexBufferLayoutDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
impl BorrowMut<VertexBufferLayoutDescriptorRef> for VertexBufferLayoutDescriptor
Source§fn borrow_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
fn borrow_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for VertexBufferLayoutDescriptor
impl Clone for VertexBufferLayoutDescriptor
Source§fn clone(&self) -> VertexBufferLayoutDescriptor
fn clone(&self) -> VertexBufferLayoutDescriptor
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 Debug for VertexBufferLayoutDescriptor
impl Debug for VertexBufferLayoutDescriptor
Source§impl Deref for VertexBufferLayoutDescriptor
impl Deref for VertexBufferLayoutDescriptor
Source§type Target = VertexBufferLayoutDescriptorRef
type Target = VertexBufferLayoutDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &VertexBufferLayoutDescriptorRef
fn deref(&self) -> &VertexBufferLayoutDescriptorRef
Dereferences the value.
Source§impl DerefMut for VertexBufferLayoutDescriptor
impl DerefMut for VertexBufferLayoutDescriptor
Source§fn deref_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
fn deref_mut(&mut self) -> &mut VertexBufferLayoutDescriptorRef
Mutably dereferences the value.
Source§impl Drop for VertexBufferLayoutDescriptor
impl Drop for VertexBufferLayoutDescriptor
Source§impl ForeignType for VertexBufferLayoutDescriptor
impl ForeignType for VertexBufferLayoutDescriptor
Source§type CType = MTLVertexBufferLayoutDescriptor
type CType = MTLVertexBufferLayoutDescriptor
The raw C type.
Source§type Ref = VertexBufferLayoutDescriptorRef
type Ref = VertexBufferLayoutDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(
ptr: *mut MTLVertexBufferLayoutDescriptor,
) -> VertexBufferLayoutDescriptor
unsafe fn from_ptr( ptr: *mut MTLVertexBufferLayoutDescriptor, ) -> VertexBufferLayoutDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLVertexBufferLayoutDescriptor
fn as_ptr(&self) -> *mut MTLVertexBufferLayoutDescriptor
Returns a raw pointer to the wrapped value.
impl Send for VertexBufferLayoutDescriptor
impl Sync for VertexBufferLayoutDescriptor
Auto Trait Implementations§
impl Freeze for VertexBufferLayoutDescriptor
impl RefUnwindSafe for VertexBufferLayoutDescriptor
impl Unpin for VertexBufferLayoutDescriptor
impl UnsafeUnpin for VertexBufferLayoutDescriptor
impl UnwindSafe for VertexBufferLayoutDescriptor
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