pub struct VertexBufferLayoutDescriptorRef(/* private fields */);Expand description
A borrowed reference to a VertexBufferLayoutDescriptor.
Implementations§
Source§impl VertexBufferLayoutDescriptorRef
impl 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 ForeignTypeRef for VertexBufferLayoutDescriptorRef
impl ForeignTypeRef for VertexBufferLayoutDescriptorRef
Source§type CType = MTLVertexBufferLayoutDescriptor
type CType = MTLVertexBufferLayoutDescriptor
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for VertexBufferLayoutDescriptorRef
impl Message for VertexBufferLayoutDescriptorRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for VertexBufferLayoutDescriptorRef
impl ToOwned for VertexBufferLayoutDescriptorRef
Source§type Owned = VertexBufferLayoutDescriptor
type Owned = VertexBufferLayoutDescriptor
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> VertexBufferLayoutDescriptor
fn to_owned(&self) -> VertexBufferLayoutDescriptor
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more