Struct emf_core_base_rs::module::native_module::NativeModuleInstance [−][src]
pub struct NativeModuleInstance<'a, O> { /* fields omitted */ }
An instance from a native module.
Implementations
impl<O> NativeModuleInstance<'_, O> where
O: AccessIdentifier,
[src]
impl<O> NativeModuleInstance<'_, O> where
O: AccessIdentifier,
[src]pub const unsafe fn new(handle: Option<NonNull<NativeModuleFFI>>) -> Self
[src]
pub const unsafe fn new(handle: Option<NonNull<NativeModuleFFI>>) -> Self
[src]Construct a new instance from a handle.
Safety
This function allows the creation of invalid handles by bypassing lifetimes.
pub const fn as_handle(&self) -> Option<NonNull<NativeModuleFFI>>
[src]
pub const fn as_handle(&self) -> Option<NonNull<NativeModuleFFI>>
[src]Fetches the internal handle.
impl NativeModuleInstance<'_, Owned>
[src]
impl NativeModuleInstance<'_, Owned>
[src]pub const fn as_borrowed(&self) -> NativeModuleInstance<'_, BorrowImmutable<'_>>
[src]
pub const fn as_borrowed(&self) -> NativeModuleInstance<'_, BorrowImmutable<'_>>
[src]Borrows the instance.
pub fn as_borrowed_mut(&mut self) -> NativeModuleInstance<'_, BorrowMutable<'_>>
[src]
pub fn as_borrowed_mut(&mut self) -> NativeModuleInstance<'_, BorrowMutable<'_>>
[src]Borrows the instance mutably.
Trait Implementations
impl<'a, O: Clone> Clone for NativeModuleInstance<'a, O>
[src]
impl<'a, O: Clone> Clone for NativeModuleInstance<'a, O>
[src]fn clone(&self) -> NativeModuleInstance<'a, O>
[src]
fn clone(&self) -> NativeModuleInstance<'a, O>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<'a, O: Debug> Debug for NativeModuleInstance<'a, O>
[src]
impl<'a, O: Debug> Debug for NativeModuleInstance<'a, O>
[src]impl<'a, O: Ord> Ord for NativeModuleInstance<'a, O>
[src]
impl<'a, O: Ord> Ord for NativeModuleInstance<'a, O>
[src]impl<'a, O: PartialEq> PartialEq<NativeModuleInstance<'a, O>> for NativeModuleInstance<'a, O>
[src]
impl<'a, O: PartialEq> PartialEq<NativeModuleInstance<'a, O>> for NativeModuleInstance<'a, O>
[src]fn eq(&self, other: &NativeModuleInstance<'a, O>) -> bool
[src]
fn eq(&self, other: &NativeModuleInstance<'a, O>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &NativeModuleInstance<'a, O>) -> bool
[src]
fn ne(&self, other: &NativeModuleInstance<'a, O>) -> bool
[src]This method tests for !=
.
impl<'a, O: PartialOrd> PartialOrd<NativeModuleInstance<'a, O>> for NativeModuleInstance<'a, O>
[src]
impl<'a, O: PartialOrd> PartialOrd<NativeModuleInstance<'a, O>> for NativeModuleInstance<'a, O>
[src]fn partial_cmp(&self, other: &NativeModuleInstance<'a, O>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &NativeModuleInstance<'a, O>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a, O: Copy> Copy for NativeModuleInstance<'a, O>
[src]
impl<'a, O: Eq> Eq for NativeModuleInstance<'a, O>
[src]
impl<O> Send for NativeModuleInstance<'_, O>
[src]
impl<'a, O> StructuralEq for NativeModuleInstance<'a, O>
[src]
impl<'a, O> StructuralPartialEq for NativeModuleInstance<'a, O>
[src]
impl<O> Sync for NativeModuleInstance<'_, O>
[src]
Auto Trait Implementations
impl<'a, O> RefUnwindSafe for NativeModuleInstance<'a, O> where
O: RefUnwindSafe,
O: RefUnwindSafe,
impl<'a, O> Unpin for NativeModuleInstance<'a, O>
impl<'a, O> UnwindSafe for NativeModuleInstance<'a, O> where
O: RefUnwindSafe,
O: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more