Enum proc_bitfield::example::ConvRawBoolExample
source · pub enum ConvRawBoolExample {
False,
True,
}
Expand description
An enum showcasing the ConvRaw
derive for converting from/into booleans.
Variants§
Trait Implementations§
source§impl From<ConvRawBoolExample> for bool
impl From<ConvRawBoolExample> for bool
source§fn from(other: ConvRawBoolExample) -> bool
fn from(other: ConvRawBoolExample) -> bool
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for i128
impl From<ConvRawBoolExample> for i128
source§fn from(other: ConvRawBoolExample) -> i128
fn from(other: ConvRawBoolExample) -> i128
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for i16
impl From<ConvRawBoolExample> for i16
source§fn from(other: ConvRawBoolExample) -> i16
fn from(other: ConvRawBoolExample) -> i16
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for i32
impl From<ConvRawBoolExample> for i32
source§fn from(other: ConvRawBoolExample) -> i32
fn from(other: ConvRawBoolExample) -> i32
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for i64
impl From<ConvRawBoolExample> for i64
source§fn from(other: ConvRawBoolExample) -> i64
fn from(other: ConvRawBoolExample) -> i64
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for i8
impl From<ConvRawBoolExample> for i8
source§fn from(other: ConvRawBoolExample) -> i8
fn from(other: ConvRawBoolExample) -> i8
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for u128
impl From<ConvRawBoolExample> for u128
source§fn from(other: ConvRawBoolExample) -> u128
fn from(other: ConvRawBoolExample) -> u128
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for u16
impl From<ConvRawBoolExample> for u16
source§fn from(other: ConvRawBoolExample) -> u16
fn from(other: ConvRawBoolExample) -> u16
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for u32
impl From<ConvRawBoolExample> for u32
source§fn from(other: ConvRawBoolExample) -> u32
fn from(other: ConvRawBoolExample) -> u32
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for u64
impl From<ConvRawBoolExample> for u64
source§fn from(other: ConvRawBoolExample) -> u64
fn from(other: ConvRawBoolExample) -> u64
Converts to this type from the input type.
source§impl From<ConvRawBoolExample> for u8
impl From<ConvRawBoolExample> for u8
source§fn from(other: ConvRawBoolExample) -> u8
fn from(other: ConvRawBoolExample) -> u8
Converts to this type from the input type.
source§impl From<bool> for ConvRawBoolExample
impl From<bool> for ConvRawBoolExample
source§fn from(other: bool) -> ConvRawBoolExample
fn from(other: bool) -> ConvRawBoolExample
Converts to this type from the input type.
source§impl TryFrom<i128> for ConvRawBoolExample
impl TryFrom<i128> for ConvRawBoolExample
source§impl TryFrom<i16> for ConvRawBoolExample
impl TryFrom<i16> for ConvRawBoolExample
source§impl TryFrom<i32> for ConvRawBoolExample
impl TryFrom<i32> for ConvRawBoolExample
source§impl TryFrom<i64> for ConvRawBoolExample
impl TryFrom<i64> for ConvRawBoolExample
source§impl TryFrom<i8> for ConvRawBoolExample
impl TryFrom<i8> for ConvRawBoolExample
source§impl TryFrom<u128> for ConvRawBoolExample
impl TryFrom<u128> for ConvRawBoolExample
source§impl TryFrom<u16> for ConvRawBoolExample
impl TryFrom<u16> for ConvRawBoolExample
source§impl TryFrom<u32> for ConvRawBoolExample
impl TryFrom<u32> for ConvRawBoolExample
source§impl TryFrom<u64> for ConvRawBoolExample
impl TryFrom<u64> for ConvRawBoolExample
source§impl TryFrom<u8> for ConvRawBoolExample
impl TryFrom<u8> for ConvRawBoolExample
source§impl UnsafeFrom<i128> for ConvRawBoolExample
impl UnsafeFrom<i128> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: i128) -> ConvRawBoolExample
unsafe fn unsafe_from(other: i128) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<i16> for ConvRawBoolExample
impl UnsafeFrom<i16> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: i16) -> ConvRawBoolExample
unsafe fn unsafe_from(other: i16) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<i32> for ConvRawBoolExample
impl UnsafeFrom<i32> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: i32) -> ConvRawBoolExample
unsafe fn unsafe_from(other: i32) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<i64> for ConvRawBoolExample
impl UnsafeFrom<i64> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: i64) -> ConvRawBoolExample
unsafe fn unsafe_from(other: i64) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<i8> for ConvRawBoolExample
impl UnsafeFrom<i8> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: i8) -> ConvRawBoolExample
unsafe fn unsafe_from(other: i8) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<u128> for ConvRawBoolExample
impl UnsafeFrom<u128> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: u128) -> ConvRawBoolExample
unsafe fn unsafe_from(other: u128) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<u16> for ConvRawBoolExample
impl UnsafeFrom<u16> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: u16) -> ConvRawBoolExample
unsafe fn unsafe_from(other: u16) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<u32> for ConvRawBoolExample
impl UnsafeFrom<u32> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: u32) -> ConvRawBoolExample
unsafe fn unsafe_from(other: u32) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<u64> for ConvRawBoolExample
impl UnsafeFrom<u64> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: u64) -> ConvRawBoolExample
unsafe fn unsafe_from(other: u64) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
source§impl UnsafeFrom<u8> for ConvRawBoolExample
impl UnsafeFrom<u8> for ConvRawBoolExample
source§unsafe fn unsafe_from(other: u8) -> ConvRawBoolExample
unsafe fn unsafe_from(other: u8) -> ConvRawBoolExample
Unsafely converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvRawBoolExample
impl RefUnwindSafe for ConvRawBoolExample
impl Send for ConvRawBoolExample
impl Sync for ConvRawBoolExample
impl Unpin for ConvRawBoolExample
impl UnwindSafe for ConvRawBoolExample
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
source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.