Enum jni::objects::ReleaseMode
source · [−]#[repr(i32)]
pub enum ReleaseMode {
CopyBack,
NoCopyBack,
}
Expand description
ReleaseMode
This defines the release mode of AutoArray (and AutoPrimitiveArray) resources, and related release array functions.
Variants
CopyBack
Copy back the content and free the elems buffer. For read-only access, prefer
NoCopyBack
.
NoCopyBack
Free the buffer without copying back the possible changes.
Trait Implementations
sourceimpl Clone for ReleaseMode
impl Clone for ReleaseMode
sourcefn clone(&self) -> ReleaseMode
fn clone(&self) -> ReleaseMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ReleaseMode
Auto Trait Implementations
impl RefUnwindSafe for ReleaseMode
impl Send for ReleaseMode
impl Sync for ReleaseMode
impl Unpin for ReleaseMode
impl UnwindSafe for ReleaseMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more