#[repr(transparent)]pub struct UniqueInteger(pub c_int);Expand description
Flags shaping the result of make_unique_integer. Combine with |.
The same options as erlang:unique_integer/1. With no flags the integer is
merely unique and may be negative; the flags constrain it to be positive
and/or strictly monotonic.
ErlNifUniqueInteger — NIF 2.11 — OTP 19
Tuple Fields§
§0: c_intImplementations§
Source§impl UniqueInteger
impl UniqueInteger
Sourcepub const POSITIVE: Self
pub const POSITIVE: Self
Return a positive integer only.
ERL_NIF_UNIQUE_POSITIVE — NIF 2.11 — OTP 19
Sourcepub const MONOTONIC: Self
pub const MONOTONIC: Self
Return a strictly monotonic integer.
ERL_NIF_UNIQUE_MONOTONIC — NIF 2.11 — OTP 19
Trait Implementations§
Source§impl BitOr for UniqueInteger
impl BitOr for UniqueInteger
Source§impl Clone for UniqueInteger
impl Clone for UniqueInteger
Source§fn clone(&self) -> UniqueInteger
fn clone(&self) -> UniqueInteger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UniqueInteger
impl Eq for UniqueInteger
Source§impl PartialEq for UniqueInteger
impl PartialEq for UniqueInteger
Source§fn eq(&self, other: &UniqueInteger) -> bool
fn eq(&self, other: &UniqueInteger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UniqueInteger
Auto Trait Implementations§
impl Freeze for UniqueInteger
impl RefUnwindSafe for UniqueInteger
impl Send for UniqueInteger
impl Sync for UniqueInteger
impl Unpin for UniqueInteger
impl UnsafeUnpin for UniqueInteger
impl UnwindSafe for UniqueInteger
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