Enum erl_nif_sys::ErlNifTimeUnit
source · [−]#[repr(u32)]
pub enum ErlNifTimeUnit {
ERL_NIF_SEC,
ERL_NIF_MSEC,
ERL_NIF_USEC,
ERL_NIF_NSEC,
}
Variants
ERL_NIF_SEC
ERL_NIF_MSEC
ERL_NIF_USEC
ERL_NIF_NSEC
Trait Implementations
sourceimpl Clone for ErlNifTimeUnit
impl Clone for ErlNifTimeUnit
sourcefn clone(&self) -> ErlNifTimeUnit
fn clone(&self) -> ErlNifTimeUnit
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
sourceimpl Debug for ErlNifTimeUnit
impl Debug for ErlNifTimeUnit
sourceimpl Hash for ErlNifTimeUnit
impl Hash for ErlNifTimeUnit
sourceimpl PartialEq<ErlNifTimeUnit> for ErlNifTimeUnit
impl PartialEq<ErlNifTimeUnit> for ErlNifTimeUnit
impl Copy for ErlNifTimeUnit
impl Eq for ErlNifTimeUnit
impl StructuralEq for ErlNifTimeUnit
impl StructuralPartialEq for ErlNifTimeUnit
Auto Trait Implementations
impl RefUnwindSafe for ErlNifTimeUnit
impl Send for ErlNifTimeUnit
impl Sync for ErlNifTimeUnit
impl Unpin for ErlNifTimeUnit
impl UnwindSafe for ErlNifTimeUnit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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