pub struct Binding(/* private fields */);Expand description
Information about a binding.
C++ equivalent: MTL::Binding
Implementations§
Source§impl Binding
impl Binding
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn is_argument(&self) -> bool
pub fn is_argument(&self) -> bool
Check if this is an argument.
C++ equivalent: bool isArgument() const
Sourcepub fn is_used(&self) -> bool
pub fn is_used(&self) -> bool
Check if this binding is used.
C++ equivalent: bool isUsed() const
Sourcepub fn binding_type(&self) -> BindingType
pub fn binding_type(&self) -> BindingType
Get the binding type.
C++ equivalent: BindingType type() const
Trait Implementations§
Source§impl Referencing for Binding
impl Referencing for Binding
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for Binding
impl Sync for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Unpin for Binding
impl UnwindSafe for Binding
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