pub struct NonZeroI64_ube(/* private fields */);Expand description
A big-endian unaligned NonZeroI64 with a guaranteed size of 4 and alignment of 1.
Implementations§
Source§impl NonZeroI64_ube
impl NonZeroI64_ube
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_ube 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_ube
impl Binary for NonZeroI64_ube
Source§impl BitOr<&NonZeroI64_ube> for &NonZeroI64_ube
impl BitOr<&NonZeroI64_ube> for &NonZeroI64_ube
Source§impl BitOr<&NonZeroI64_ube> for NonZeroI64
impl BitOr<&NonZeroI64_ube> for NonZeroI64
Source§impl BitOr<&NonZeroI64_ube> for NonZeroI64_ube
impl BitOr<&NonZeroI64_ube> for NonZeroI64_ube
Source§impl BitOr<NonZeroI64_ube> for &NonZeroI64_ube
impl BitOr<NonZeroI64_ube> for &NonZeroI64_ube
Source§impl BitOr<NonZeroI64_ube> for NonZeroI64
impl BitOr<NonZeroI64_ube> for NonZeroI64
Source§impl BitOr for NonZeroI64_ube
impl BitOr for NonZeroI64_ube
Source§impl BitOrAssign<NonZero<i64>> for NonZeroI64_ube
impl BitOrAssign<NonZero<i64>> for NonZeroI64_ube
Source§fn bitor_assign(&mut self, other: NonZeroI64)
fn bitor_assign(&mut self, other: NonZeroI64)
Performs the
|= operation. Read moreSource§impl BitOrAssign for NonZeroI64_ube
impl BitOrAssign for NonZeroI64_ube
Source§fn bitor_assign(&mut self, other: NonZeroI64_ube)
fn bitor_assign(&mut self, other: NonZeroI64_ube)
Performs the
|= operation. Read moreSource§impl<C> CheckBytes<C> for NonZeroI64_ube
Available on crate feature bytecheck only.
impl<C> CheckBytes<C> for NonZeroI64_ube
Available on crate feature
bytecheck only.Source§impl Clone for NonZeroI64_ube
impl Clone for NonZeroI64_ube
Source§impl Debug for NonZeroI64_ube
impl Debug for NonZeroI64_ube
Source§impl Display for NonZeroI64_ube
impl Display for NonZeroI64_ube
Source§impl<'a> From<&'a NonZero<i64>> for NonZeroI64_ube
impl<'a> From<&'a NonZero<i64>> for NonZeroI64_ube
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_ube> for NonZeroI64
impl<'a> From<&'a NonZeroI64_ube> for NonZeroI64
Source§fn from(value: &'a NonZeroI64_ube) -> Self
fn from(value: &'a NonZeroI64_ube) -> Self
Converts to this type from the input type.
Source§impl From<NonZero<i64>> for NonZeroI64_ube
impl From<NonZero<i64>> for NonZeroI64_ube
Source§fn from(value: NonZeroI64) -> Self
fn from(value: NonZeroI64) -> Self
Converts to this type from the input type.
Source§impl From<NonZeroI64_ube> for NonZeroI64
impl From<NonZeroI64_ube> for NonZeroI64
Source§fn from(value: NonZeroI64_ube) -> Self
fn from(value: NonZeroI64_ube) -> Self
Converts to this type from the input type.
Source§impl Hash for NonZeroI64_ube
impl Hash for NonZeroI64_ube
Source§impl LowerHex for NonZeroI64_ube
impl LowerHex for NonZeroI64_ube
Source§impl Octal for NonZeroI64_ube
impl Octal for NonZeroI64_ube
Source§impl Ord for NonZeroI64_ube
impl Ord for NonZeroI64_ube
Source§impl PartialEq<NonZeroI64_ube> for NonZeroI64
impl PartialEq<NonZeroI64_ube> for NonZeroI64
Source§impl PartialEq for NonZeroI64_ube
impl PartialEq for NonZeroI64_ube
Source§impl PartialOrd<NonZero<i64>> for NonZeroI64_ube
impl PartialOrd<NonZero<i64>> for NonZeroI64_ube
Source§impl PartialOrd for NonZeroI64_ube
impl PartialOrd for NonZeroI64_ube
Source§impl UpperHex for NonZeroI64_ube
impl UpperHex for NonZeroI64_ube
impl Copy for NonZeroI64_ube
impl Eq for NonZeroI64_ube
Auto Trait Implementations§
impl Freeze for NonZeroI64_ube
impl RefUnwindSafe for NonZeroI64_ube
impl Send for NonZeroI64_ube
impl Sync for NonZeroI64_ube
impl Unpin for NonZeroI64_ube
impl UnsafeUnpin for NonZeroI64_ube
impl UnwindSafe for NonZeroI64_ube
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