Thanks to visit codestin.com
Credit goes to docs.rs

Fence

Struct Fence 

Source
pub struct Fence(/* private fields */);

Methods from Deref<Target = FenceRef>§

Source

pub fn device(&self) -> &DeviceRef

Source

pub fn label(&self) -> &str

Source

pub fn set_label(&self, label: &str)

Trait Implementations§

Source§

impl AsMut<FenceRef> for Fence

Source§

fn as_mut(&mut self) -> &mut FenceRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<FenceRef> for Fence

Source§

fn as_ref(&self) -> &FenceRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<FenceRef> for Fence

Source§

fn borrow(&self) -> &FenceRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<FenceRef> for Fence

Source§

fn borrow_mut(&mut self) -> &mut FenceRef

Mutably borrows from an owned value. Read more
Source§

impl Clone for Fence

Source§

fn clone(&self) -> Fence

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Fence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Fence

Source§

type Target = FenceRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &FenceRef

Dereferences the value.
Source§

impl DerefMut for Fence

Source§

fn deref_mut(&mut self) -> &mut FenceRef

Mutably dereferences the value.
Source§

impl Drop for Fence

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ForeignType for Fence

Source§

type CType = MTLFence

The raw C type.
Source§

type Ref = FenceRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr(ptr: *mut MTLFence) -> Fence

Constructs an instance of this type from its raw type. Read more
Source§

fn as_ptr(&self) -> *mut MTLFence

Returns a raw pointer to the wrapped value.
Source§

fn into_ptr(self) -> *mut Self::CType

Consumes the wrapper and returns the raw pointer.
Source§

impl Send for Fence

Source§

impl Sync for Fence

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.