Struct rend::NonZeroI64_be
source · #[repr(C, align(8))]pub struct NonZeroI64_be(/* private fields */);
Expand description
A big-endian NonZeroI64
with a guaranteed size and alignment of 8
.
Implementations§
source§impl NonZeroI64_be
impl NonZeroI64_be
sourcepub const fn new(value: i64) -> Option<Self>
pub const fn new(value: i64) -> Option<Self>
Creates a non-zero if the given value is not zero.
sourcepub const unsafe fn new_unchecked(value: i64) -> Self
pub const unsafe fn new_unchecked(value: i64) -> Self
Creates a non-zero without checking whether it is non-zero. This results in undefined behavior if the value is zero.
Safety
The value must not be zero.
sourcepub const fn from_native(value: NonZeroI64) -> Self
pub const fn from_native(value: NonZeroI64) -> Self
Returns a NonZeroI64_be
containing value
.
sourcepub const fn to_native(self) -> NonZeroI64
pub const fn to_native(self) -> NonZeroI64
Returns a NonZeroI64
with the same value as self
.
Trait Implementations§
source§impl Binary for NonZeroI64_be
impl Binary for NonZeroI64_be
source§impl BitOr<&NonZeroI64_be> for &NonZeroI64_be
impl BitOr<&NonZeroI64_be> for &NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<&NonZeroI64_be> for NonZeroI64
impl BitOr<&NonZeroI64_be> for NonZeroI64
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<&NonZeroI64_be> for NonZeroI64_be
impl BitOr<&NonZeroI64_be> for NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<NonZeroI64> for &NonZeroI64_be
impl BitOr<NonZeroI64> for &NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<NonZeroI64> for NonZeroI64_be
impl BitOr<NonZeroI64> for NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<NonZeroI64_be> for &NonZeroI64_be
impl BitOr<NonZeroI64_be> for &NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr<NonZeroI64_be> for NonZeroI64
impl BitOr<NonZeroI64_be> for NonZeroI64
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOr for NonZeroI64_be
impl BitOr for NonZeroI64_be
§type Output = NonZeroI64
type Output = NonZeroI64
The resulting type after applying the
|
operator.source§impl BitOrAssign<NonZeroI64> for NonZeroI64_be
impl BitOrAssign<NonZeroI64> for NonZeroI64_be
source§fn bitor_assign(&mut self, other: NonZeroI64)
fn bitor_assign(&mut self, other: NonZeroI64)
Performs the
|=
operation. Read moresource§impl BitOrAssign for NonZeroI64_be
impl BitOrAssign for NonZeroI64_be
source§fn bitor_assign(&mut self, other: NonZeroI64_be)
fn bitor_assign(&mut self, other: NonZeroI64_be)
Performs the
|=
operation. Read moresource§impl Clone for NonZeroI64_be
impl Clone for NonZeroI64_be
source§impl Debug for NonZeroI64_be
impl Debug for NonZeroI64_be
source§impl Display for NonZeroI64_be
impl Display for NonZeroI64_be
source§impl<'a> From<&'a NonZeroI64> for NonZeroI64_be
impl<'a> From<&'a NonZeroI64> for NonZeroI64_be
source§fn from(value: &'a NonZeroI64) -> Self
fn from(value: &'a NonZeroI64) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a NonZeroI64_be> for NonZeroI64
impl<'a> From<&'a NonZeroI64_be> for NonZeroI64
source§fn from(value: &'a NonZeroI64_be) -> Self
fn from(value: &'a NonZeroI64_be) -> Self
Converts to this type from the input type.
source§impl From<NonZeroI64> for NonZeroI64_be
impl From<NonZeroI64> for NonZeroI64_be
source§fn from(value: NonZeroI64) -> Self
fn from(value: NonZeroI64) -> Self
Converts to this type from the input type.
source§impl From<NonZeroI64_be> for NonZeroI64
impl From<NonZeroI64_be> for NonZeroI64
source§fn from(value: NonZeroI64_be) -> Self
fn from(value: NonZeroI64_be) -> Self
Converts to this type from the input type.
source§impl Hash for NonZeroI64_be
impl Hash for NonZeroI64_be
source§impl LowerHex for NonZeroI64_be
impl LowerHex for NonZeroI64_be
source§impl Octal for NonZeroI64_be
impl Octal for NonZeroI64_be
source§impl Ord for NonZeroI64_be
impl Ord for NonZeroI64_be
source§impl PartialEq<NonZeroI64> for NonZeroI64_be
impl PartialEq<NonZeroI64> for NonZeroI64_be
source§fn eq(&self, other: &NonZeroI64) -> bool
fn eq(&self, other: &NonZeroI64) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<NonZeroI64_be> for NonZeroI64
impl PartialEq<NonZeroI64_be> for NonZeroI64
source§fn eq(&self, other: &NonZeroI64_be) -> bool
fn eq(&self, other: &NonZeroI64_be) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for NonZeroI64_be
impl PartialEq for NonZeroI64_be
source§impl PartialOrd<NonZeroI64> for NonZeroI64_be
impl PartialOrd<NonZeroI64> for NonZeroI64_be
source§fn partial_cmp(&self, other: &NonZeroI64) -> Option<Ordering>
fn partial_cmp(&self, other: &NonZeroI64) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for NonZeroI64_be
impl PartialOrd for NonZeroI64_be
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl UpperHex for NonZeroI64_be
impl UpperHex for NonZeroI64_be
impl Copy for NonZeroI64_be
impl Eq for NonZeroI64_be
Auto Trait Implementations§
impl RefUnwindSafe for NonZeroI64_be
impl Send for NonZeroI64_be
impl Sync for NonZeroI64_be
impl Unpin for NonZeroI64_be
impl UnwindSafe for NonZeroI64_be
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